The callbacks for `Ui/Screen.on()` are optional
authorAlexander Ebert <ebert@woltlab.com>
Sun, 3 Jan 2021 15:58:21 +0000 (16:58 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 3 Jan 2021 15:58:21 +0000 (16:58 +0100)
wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/Screen.ts

index f2051a15bb1b9c92f8aac8afd56cfe395b45741f..fb0ff601c4dd077b6a7d251e44f9412d4183c510 100644 (file)
@@ -50,7 +50,7 @@ const _mqMapEdge = new Map<string, string>();
  * 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<Callbacks>): string {
   const uuid = Core.getUuid(),
     queryObject = _getQueryObject(query);