The definition is based on the JSDoc comments, and they assume #3 is correct (i.e. DirectoryOpenOptions.recursive should be a boolean).
TypeScript currently does not support the Native File System API as the specification/implementation progress does not currently meet the requirements, so I've included temporary definitions for FileSystemHandle and FileSystemHandlePermissionDescriptor. This should scale gracefully once support is actually added provided the interface in the specification does not change significantly. (An alternative solution would be to simply not include these two interfaces and have fileSave take a generic object as its handle argument.)
The definition is based on the JSDoc comments, and they assume #3 is correct (i.e.
DirectoryOpenOptions.recursive
should be aboolean
).TypeScript currently does not support the Native File System API as the specification/implementation progress does not currently meet the requirements, so I've included temporary definitions for
FileSystemHandle
andFileSystemHandlePermissionDescriptor
. This should scale gracefully once support is actually added provided the interface in the specification does not change significantly. (An alternative solution would be to simply not include these two interfaces and havefileSave
take a genericobject
as itshandle
argument.)