Browse Source

fix: queryElementById type

Peng Xiao 3 years ago
parent
commit
b4dbf1a04c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libs/src/LSPlugin.ts

+ 1 - 1
libs/src/LSPlugin.ts

@@ -226,7 +226,7 @@ export interface IAppProxy {
   replaceState: (k: string, params?: Record<string, any>, query?: Record<string, any>) => void
 
   // ui
-  queryElementById: (id: string) => string | boolean
+  queryElementById: (id: string) => Promise<string | boolean>
   showMsg: (content: string, status?: 'success' | 'warning' | 'error' | string) => void
   setZoomFactor: (factor: number) => void
   setFullScreen: (flag: boolean | 'toggle') => void