Skip to content

Commit

Permalink
Add inexact object def
Browse files Browse the repository at this point in the history
  • Loading branch information
ZelJin committed Mar 16, 2024
1 parent a663b5a commit 5c82278
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -4546,7 +4546,7 @@ type WindowFileSystemPickerFileType = {
},
};

type WindowBaseFilePickerOptions = {
type WindowBaseFilePickerOptions = {|
id?: number,
startIn?:
| FileSystemHandle
Expand All @@ -4556,24 +4556,24 @@ type WindowBaseFilePickerOptions = {
| "music"
| "pictures"
| "videos",
};
|};

type WindowFilePickerOptions = WindowBaseFilePickerOptions & {
type WindowFilePickerOptions = WindowBaseFilePickerOptions & {|
excludeAcceptAllOption?: boolean,
types?: Array<WindowFileSystemPickerFileType>,
};
|};

type WindowOpenFilePickerOptions = WindowFilePickerOptions & {
type WindowOpenFilePickerOptions = WindowFilePickerOptions & {|
multiple?: boolean,
};
|};

type WindowSaveFilePickerOptions = WindowFilePickerOptions & {
type WindowSaveFilePickerOptions = WindowFilePickerOptions & {|
suggestedName?: string,
};
|};

type WindowDirectoryFilePickerOptions = WindowBaseFilePickerOptions & {
type WindowDirectoryFilePickerOptions = WindowBaseFilePickerOptions & {|
mode?: "read" | "readwrite",
};
|};

// https://wicg.github.io/file-system-access/#api-showopenfilepicker
declare function showOpenFilePicker(
Expand Down

0 comments on commit 5c82278

Please sign in to comment.