From 8bfeae4b3593b2efa0aa075a0d9e0b5926cdf169 Mon Sep 17 00:00:00 2001 From: Marco Rodolfi Date: Thu, 22 Jun 2023 11:38:45 +0200 Subject: [PATCH] fix: move the new file picker api as v2 --- src/plugin.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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),