Skip to content

Commit

Permalink
Merge pull request #27 from zotero-cn:bootstrap
Browse files Browse the repository at this point in the history
fix: update type error in template code
  • Loading branch information
windingwind authored Mar 12, 2023
2 parents 0afe777 + f625f32 commit 5abb83c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function onShutdown(): void {
async function onNotify(
event: string,
type: string,
ids: Array<string>,
ids: Array<string | number>,
extraData: { [key: string]: any }
) {
// You can add your code to the corresponding notify type
Expand Down
2 changes: 1 addition & 1 deletion src/modules/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class BasicExampleFactory {
notify: async (
event: string,
type: string,
ids: Array<string>,
ids: number[] | string[],
extraData: { [key: string]: any }
) => {
if (!addon?.data.alive) {
Expand Down

0 comments on commit 5abb83c

Please sign in to comment.