From 3d0031c023f055fdb439d9033a053935f8698611 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Tue, 14 Jan 2020 07:43:28 -0800 Subject: [PATCH] Use patched type for onnotify --- modern/src/runtime/Wac.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modern/src/runtime/Wac.ts b/modern/src/runtime/Wac.ts index ad804d24..882ac95b 100644 --- a/modern/src/runtime/Wac.ts +++ b/modern/src/runtime/Wac.ts @@ -41,11 +41,9 @@ class Wac extends MakiObject { return unimplementedWarning("isvisible"); } - // @ts-ignore This (deprecated) method's signature does not quite match the - // same method on MakiObject. This method is not used by any skins as far as - // we know, so we'll just ignore the issue for now. - onnotify(notifstr: string, a: string, b: number): void { - this.js_trigger("onNotify", notifstr, a, b); + onnotify(command: string, param: string, a: number, b: number): number { + this.js_trigger("onNotify", command, param, a, b); + return unimplementedWarning("onnotify"); } onshow(): void {