Skip to content
1 min read · 99 words

Interface: OpfsFileHandle

Defined in: batteries/storage/opfs/index.ts:65

Minimal subset of the File System AccessOpfsFileHandle interface that this module touches at runtime. Structurally compatible with the DOM-lib OpfsFileHandle — at call sites you pass real OPFS handles directly.

Properties

PropertyModifierTypeDefined in
kindreadonly"file"batteries/storage/opfs/index.ts:66
namereadonlystringbatteries/storage/opfs/index.ts:67

Methods

createWritable()

ts
createWritable(): Promise<OpfsWritableFileStream>;

Defined in: batteries/storage/opfs/index.ts:69

Returns

Promise<OpfsWritableFileStream>


getFile()

ts
getFile(): Promise<OpfsFile>;

Defined in: batteries/storage/opfs/index.ts:68

Returns

Promise<OpfsFile>