浏览代码

fix: queryElementById type

Peng Xiao 3 年之前
父节点
当前提交
b4dbf1a04c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
   replaceState: (k: string, params?: Record<string, any>, query?: Record<string, any>) => void
 
 
   // ui
   // ui
-  queryElementById: (id: string) => string | boolean
+  queryElementById: (id: string) => Promise<string | boolean>
   showMsg: (content: string, status?: 'success' | 'warning' | 'error' | string) => void
   showMsg: (content: string, status?: 'success' | 'warning' | 'error' | string) => void
   setZoomFactor: (factor: number) => void
   setZoomFactor: (factor: number) => void
   setFullScreen: (flag: boolean | 'toggle') => void
   setFullScreen: (flag: boolean | 'toggle') => void