Use patched type for onnotify

This commit is contained in:
Jordan Eldredge 2020-01-14 07:43:28 -08:00
parent 644aa2e0b7
commit 3d0031c023

View file

@ -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 {