Skip to content
1 min read · 81 words

Interface: OpfsFileHandle

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

PropertyModifierType
kindreadonly"file"
namereadonlystring

Methods

createWritable()

ts
createWritable(): Promise<OpfsWritableFileStream>;

Returns

Promise<OpfsWritableFileStream>


getFile()

ts
getFile(): Promise<OpfsFile>;

Returns

Promise<OpfsFile>