Merge pull request #27 from zotero-cn:bootstrap
fix: update type error in template code
This commit is contained in:
commit
5abb83c518
@ -91,7 +91,7 @@ function onShutdown(): void {
|
|||||||
async function onNotify(
|
async function onNotify(
|
||||||
event: string,
|
event: string,
|
||||||
type: string,
|
type: string,
|
||||||
ids: Array<string>,
|
ids: Array<string | number>,
|
||||||
extraData: { [key: string]: any }
|
extraData: { [key: string]: any }
|
||||||
) {
|
) {
|
||||||
// You can add your code to the corresponding notify type
|
// You can add your code to the corresponding notify type
|
||||||
|
@ -26,7 +26,7 @@ export class BasicExampleFactory {
|
|||||||
notify: async (
|
notify: async (
|
||||||
event: string,
|
event: string,
|
||||||
type: string,
|
type: string,
|
||||||
ids: Array<string>,
|
ids: number[] | string[],
|
||||||
extraData: { [key: string]: any }
|
extraData: { [key: string]: any }
|
||||||
) => {
|
) => {
|
||||||
if (!addon?.data.alive) {
|
if (!addon?.data.alive) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user