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
| Property | Modifier | Type | Defined in |
|---|---|---|---|
kind | readonly | "file" | batteries/storage/opfs/index.ts:66 |
name | readonly | string | batteries/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>