diff --git a/src/plugin.tsx b/src/plugin.tsx index 200a1f5..4ca940c 100644 --- a/src/plugin.tsx +++ b/src/plugin.tsx @@ -55,12 +55,22 @@ export interface Toaster { export interface FilePickerRes { path: string; realpath: string; + total: number; } export interface ServerAPI { routerHook: RouterHook; toaster: Toaster; - openFilePicker(startPath: string, includeFiles?: boolean, regex?: RegExp): Promise; + openFilePicker( + startPath: string, + includeFiles?: boolean, + filter?: RegExp | ((file: File) => boolean), + includeFolders?: boolean, + extensions?: string[], + showHiddenFiles?: boolean, + allowAllFiles?: boolean, + max?: number, + ): Promise; callPluginMethod(methodName: string, args: TArgs): Promise>; callServerMethod(methodName: string, args: TArgs): Promise>; fetchNoCors(url: RequestInfo, request?: RequestInit): Promise>;