UNPKG

opfs-tools

Version:

EN: A simple, high-performance, and comprehensive file system API running in the browser, built on [OPFS](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system).

11 lines (10 loc) 506 B
import { FileSystemSyncAccessHandle } from './common'; export type OPFSWorkerAccessHandle = { read: (offset: number, size: number) => Promise<ArrayBuffer>; write: FileSystemSyncAccessHandle['write']; close: FileSystemSyncAccessHandle['close']; truncate: FileSystemSyncAccessHandle['truncate']; getSize: FileSystemSyncAccessHandle['getSize']; flush: FileSystemSyncAccessHandle['flush']; }; export declare function createOPFSAccess(filePath: string): Promise<OPFSWorkerAccessHandle>;