diff --git a/src/plugin.tsx b/src/plugin.tsx index fc0dcd9..2ff6eea 100644 --- a/src/plugin.tsx +++ b/src/plugin.tsx @@ -57,6 +57,11 @@ export interface FilePickerRes { realpath: string; } +export enum FileSelectionType { + FILE, + FOLDER, +} + export interface ServerAPI { routerHook: RouterHook; toaster: Toaster; @@ -70,6 +75,7 @@ export interface ServerAPI { showHiddenFiles?: boolean, allowAllFiles?: boolean, max?: number, + select?: FileSelectionType, ): Promise; callPluginMethod(methodName: string, args: TArgs): Promise>; callServerMethod(methodName: string, args: TArgs): Promise>;