fix: Update type in hooks, match the variable types between examples.ts and hooks.ts

This commit is contained in:
Linxzh 2023-03-03 15:08:13 +08:00
parent 833a7ee8ec
commit b0010ee8c7
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ function onShutdown(): void {
async function onNotify(
event: string,
type: string,
ids: Array<string>,
ids: Array<string> | Array<number>,
extraData: { [key: string]: any }
) {
// You can add your code to the corresponding notify type

View File

@ -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);
},
};