native-file-system-adapter-ts
Version:
Native File System API
8 lines (6 loc) • 405 B
text/typescript
import { FileSystemFileHandleImpl } from './file-system-file-handle';
import { FileHandleDownloader } from './adapters/downloader';
import { SaveFilePickerOptions, FileSystemFileHandle } from './types';
export async function showSaveFilePicker(options: SaveFilePickerOptions = {}): Promise<FileSystemFileHandle> {
return new FileSystemFileHandleImpl(new FileHandleDownloader(options.suggestedName));
}