fix: move the new file picker api as v2

This commit is contained in:
Marco Rodolfi
2023-06-22 11:38:45 +02:00
parent a7761321bc
commit 8bfeae4b35

View File

@@ -60,7 +60,8 @@ export interface FilePickerRes {
export interface ServerAPI {
routerHook: RouterHook;
toaster: Toaster;
openFilePicker(
openFilePicker(startPath: string, includeFiles?: boolean, regex?: RegExp): Promise<FilePickerRes>;
openFilePickerV2(
startPath: string,
includeFiles?: boolean,
filter?: RegExp | ((file: File) => boolean),