UNPKG

file-system-access

Version:

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

14 lines (13 loc) 599 B
/// <reference types="wicg-file-system-access" /> export interface FallbackAcceptsObject { extensions?: string[]; mimeTypes?: string[]; } export interface CustomOpenFilePickerOptions extends OpenFilePickerOptions { /** If you rather want to use the polyfill instead of the native implementation */ _preferPolyfill?: boolean; /** Accept options for input fallback */ accepts?: FallbackAcceptsObject[]; } export declare function showOpenFilePicker(opts?: CustomOpenFilePickerOptions): Promise<globalThis.FileSystemFileHandle[]>; export default showOpenFilePicker;