From 833a7ee8ec991de85fc5bade164e9a52a2a2a0a9 Mon Sep 17 00:00:00 2001 From: Linxzh Date: Fri, 3 Mar 2023 09:46:53 +0800 Subject: [PATCH] fix: update type error in template code --- src/modules/examples.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/examples.ts b/src/modules/examples.ts index d5d7eed..63e2bf3 100644 --- a/src/modules/examples.ts +++ b/src/modules/examples.ts @@ -26,14 +26,14 @@ export class BasicExampleFactory { notify: async ( event: string, type: string, - ids: Array, + ids: number[] | string[], extraData: { [key: string]: any } ) => { if (!addon?.data.alive) { this.unregisterNotifier(notifierID); return; } - addon.hooks.onNotify(event, type, ids, extraData); + addon.hooks.onNotify(event, type, ids as string[], extraData); }, };