Skip to content

Commit a4e568f

Browse files
committed
* core: update type definition for 'multiple' option to be optional for improved flexibility
1 parent fc24f3e commit a4e568f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/src/helpers/select-file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export function selectFile(options?: string | {accept?: string; multiple: false | undefined}): Promise<File | null>;
1+
export function selectFile(options?: string | {accept?: string; multiple?: false | undefined}): Promise<File | null>;
22

3-
export function selectFile(options: {accept?: string; multiple: true}): Promise<FileList | null>;
3+
export function selectFile(options: {accept?: string; multiple?: true}): Promise<FileList | null>;
44

55
/**
66
* Select file from file system.

0 commit comments

Comments
 (0)