You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Allow multiple files to be selected. Defaults to false. */
12
12
multiple?: M;
13
13
/**
14
-
* Configurable cleanup and `Promise` rejector usable with legacy API for determining when (and reacting when) a user cancels the operation.
15
-
* The method will be called a reference to the internal `rejectionHandler` that can, e.g., be attached to/removed from the window or called after a timeout.
16
-
* The method should return a function that will be called when either the user chooses to open a file or the `rejectionHandler` is called.
17
-
* In the latter case, the returned function will also be passed a reference to the `reject` callback for the `Promise` returned by `fileOpen`, so that developers may reject the `Promise` when desired at that time.
14
+
* Configurable cleanup and `Promise` rejector usable with legacy API for
15
+
* determining when (and reacting if) a user cancels the operation. The
16
+
* method will be passed a reference to the internal `rejectionHandler` that
17
+
* can, e.g., be attached to/removed from the window or called after a
18
+
* timeout. The method should return a function that will be called when
19
+
* either the user chooses to open a file or the `rejectionHandler` is
20
+
* called. In the latter case, the returned function will also be passed a
21
+
* reference to the `reject` callback for the `Promise` returned by
22
+
* `fileOpen`, so that developers may reject the `Promise` when desired at
23
+
* that time.
24
+
* ToDo: Remove this workaround once
25
+
* https://github.com/whatwg/html/issues/6376 is specified and supported.
18
26
*/
19
27
setupLegacyCleanupAndRejection?: (
20
28
rejectionHandler?: ()=>void
@@ -38,9 +46,15 @@ export function fileSave(
38
46
/** Suggested file description. Defaults to "". */
39
47
description?: string;
40
48
},
41
-
/** A potentially existing file handle for a file to save to. Defaults to null. */
49
+
/**
50
+
* A potentially existing file handle for a file to save to. Defaults to
51
+
* null.
52
+
*/
42
53
existingHandle?: FileSystemHandle|null,
43
-
/** Determines whether to throw (rather than open a new file save dialog) when existingHandle is no longer good. Defaults to false. */
54
+
/**
55
+
* Determines whether to throw (rather than open a new file save dialog)
56
+
* when existingHandle is no longer good. Defaults to false.
0 commit comments