diff --git a/src/plugin.tsx b/src/plugin.tsx index c589729..7b37771 100644 --- a/src/plugin.tsx +++ b/src/plugin.tsx @@ -60,7 +60,8 @@ export interface FilePickerRes { export interface ServerAPI { routerHook: RouterHook; toaster: Toaster; - openFilePicker( + openFilePicker(startPath: string, includeFiles?: boolean, regex?: RegExp): Promise; + openFilePickerV2( startPath: string, includeFiles?: boolean, filter?: RegExp | ((file: File) => boolean),