From adf07e43a3b4d7e8dac1fdcddb800a8d37205e19 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 3 Jan 2021 16:58:21 +0100 Subject: [PATCH] The callbacks for `Ui/Screen.on()` are optional --- wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Screen.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1