diff --git a/src/type.d.ts b/src/type.d.ts index 29eb135c..e08a6717 100644 --- a/src/type.d.ts +++ b/src/type.d.ts @@ -1,111 +1,111 @@ export interface JsScriptInfo { - name: string; - enable: boolean; - version: string; - author: string; - license: string; - homepage: string; - desc: string; - grant?: any; - updateTime: number; - installTime: number; - errText: string; - filename: string; - updateUrls?: string[]; - official: boolean; - builtin: boolean; - builtinUpdated: boolean; + name: string; + enable: boolean; + version: string; + author: string; + license: string; + homepage: string; + desc: string; + grant?: any; + updateTime: number; + installTime: number; + errText: string; + filename: string; + updateUrls?: string[]; + official: boolean; + builtin: boolean; + builtinUpdated: boolean; } export interface JsPluginConfigItem { - key: string; - type: string; - defaultValue: any; - value: any; - option: any[]; - deprecated: boolean; - description: string; + key: string; + type: string; + defaultValue: any; + value: any; + option: any[]; + deprecated: boolean; + description: string; } export interface JsPluginConfig { - pluginName: string; - configs: JsPluginConfigItem[]; + pluginName: string; + configs: JsPluginConfigItem[]; } export interface HelpDocData { - helpInfo: HelpDocHelpInfo; - docTree: HelpDoc[]; + helpInfo: HelpDocHelpInfo; + docTree: HelpDoc[]; } export interface HelpDocHelpInfo { - [key: string]: number; + [key: string]: number; } export interface HelpDoc { - name: string; - path: string; - group: string; - type: ".json" | ".xlsx"; - isDir: boolean; - loadStatus: 0 | 1 | 2; - deleted: boolean; + name: string; + path: string; + group: string; + type: ".json" | ".xlsx"; + isDir: boolean; + loadStatus: 0 | 1 | 2; + deleted: boolean; - children: HelpDoc[] | null; + children: HelpDoc[] | null; } export interface HelpTextItemQuery { - pageNum: number; - pageSize: number; - total: number; - id?: number; - group?: string; - from?: string; - title?: string; + pageNum: number; + pageSize: number; + total: number; + id?: number; + group?: string; + from?: string; + title?: string; } export interface HelpTextItem { - id: number; - group: string; - from: string; - title: string; - content: string - packageName: string - keyWords: string + id: number; + group: string; + from: string; + title: string; + content: string + packageName: string + keyWords: string } export interface AdvancedConfig { - show: boolean, - enable: boolean, - storyLogBackendUrl: string, - storyLogApiVersion: string, - storyLogBackendToken: string, - storeBackendUrl: string, + show: boolean, + enable: boolean, + storyLogBackendUrl: string, + storyLogApiVersion: string, + storyLogBackendToken: string, + storeBackendUrl: string, } export type StoreElemType = 'plugin' | 'deck' // | 'reply' | 'helpdoc' export interface StoreElem { - id: string - installed: boolean + id: string + installed: boolean - source: 'official' | string - type: StoreElemType - ext: '.js' | '.toml' | '.json' | '.jsonc' | '.yaml' | '.xlsx' | string + source: 'official' | string + type: StoreElemType + ext: '.js' | '.toml' | '.json' | '.jsonc' | '.yaml' | '.xlsx' | string - name: string - version: string - authors: string[] - desc: string - license: string - releaseTime: number - updateTime?: number - tags?: string[] - rate?: number - extra?: Map - downloadNum?: number, - downloadUrl: string, - hash?: Map - homePage?: string - sealVersion?: string - dependencies?: Map -} \ No newline at end of file + name: string + version: string + authors: string[] + desc: string + license: string + releaseTime: number + updateTime?: number + tags?: string[] + rate?: number + extra?: Map + downloadNum?: number, + downloadUrl: string, + hash?: Map + homePage?: string + sealVersion?: string + dependencies?: Map +}