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(
 | 
			
		||||
  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
 | 
			
		||||
 | 
			
		||||
@ -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) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user