From: Alexander Ebert Date: Sun, 3 Jan 2021 15:58:21 +0000 (+0100) Subject: The callbacks for `Ui/Screen.on()` are optional X-Git-Tag: 5.4.0_Alpha_1~484^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=adf07e43a3b4d7e8dac1fdcddb800a8d37205e19;p=GitHub%2FWoltLab%2FWCF.git The callbacks for `Ui/Screen.on()` are optional --- diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Screen.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Screen.ts index f2051a15bb..fb0ff601c4 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Screen.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Screen.ts @@ -50,7 +50,7 @@ const _mqMapEdge = new Map(); * Returns a UUID that is used to internal identify the callbacks, can be used * to remove binding by calling the `remove` method. */ -export function on(query: string, callbacks: Callbacks): string { +export function on(query: string, callbacks: Partial): string { const uuid = Core.getUuid(), queryObject = _getQueryObject(query);