diff --git a/src/hooks.ts b/src/hooks.ts index c8e8fe3..ef7f161 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -91,7 +91,7 @@ function onShutdown(): void { async function onNotify( event: string, type: string, - ids: Array, + ids: Array | Array, extraData: { [key: string]: any } ) { // You can add your code to the corresponding notify type diff --git a/src/modules/examples.ts b/src/modules/examples.ts index 63e2bf3..b780884 100644 --- a/src/modules/examples.ts +++ b/src/modules/examples.ts @@ -33,7 +33,7 @@ export class BasicExampleFactory { this.unregisterNotifier(notifierID); return; } - addon.hooks.onNotify(event, type, ids as string[], extraData); + addon.hooks.onNotify(event, type, ids, extraData); }, };