TypeScript API / contentia/storage/web-fs / WebFsRootInput
Type Alias: WebFsRootInput
ts
type WebFsRootInput =
| WebFsDirectoryHandle
| FileSystemDirectoryHandle
| (() =>
| WebFsDirectoryHandle
| FileSystemDirectoryHandle
| Promise<
| WebFsDirectoryHandle
| FileSystemDirectoryHandle>);Accepted forms of the root constructor option: a directory handle (a real FileSystemDirectoryHandle or any object satisfying WebFsDirectoryHandle), or a provider resolving one lazily. The explicit FileSystemDirectoryHandle union member exists so a real handle typechecks even under lib configurations whose DOM types omit the async-iteration members — at runtime the shapes are identical.