UNPKG

file-system-access

Version:

File System Access API implementation (ponyfill) with pluggable storage adapters via IndexedDB, Cache API, in-memory etc.

8 lines (7 loc) 424 B
/// <reference types="wicg-file-system-access" /> export interface CustomDirectoryPickerOptions extends DirectoryPickerOptions { /** If you rather want to use the polyfill instead of the native implementation */ _preferPolyfill?: boolean; } export declare function showDirectoryPicker(options?: CustomDirectoryPickerOptions): Promise<globalThis.FileSystemDirectoryHandle>; export default showDirectoryPicker;