Skip to content

Commit

Permalink
fix: missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
RodoMa92 committed Jun 22, 2023
1 parent 7e01781 commit 8b54ee9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ export interface FilePickerRes {
realpath: string;
}

export enum FileSelectionType {
FILE,
FOLDER,
}

export interface ServerAPI {
routerHook: RouterHook;
toaster: Toaster;
Expand All @@ -70,6 +75,7 @@ export interface ServerAPI {
showHiddenFiles?: boolean,
allowAllFiles?: boolean,
max?: number,
select?: FileSelectionType,
): Promise<FilePickerRes>;
callPluginMethod<TArgs = {}, TRes = {}>(methodName: string, args: TArgs): Promise<ServerResponse<TRes>>;
callServerMethod<TArgs = {}, TRes = {}>(methodName: string, args: TArgs): Promise<ServerResponse<TRes>>;
Expand Down

0 comments on commit 8b54ee9

Please sign in to comment.