Interface: OpfsFile
Defined in: src/batteries/storage/opfs/index.ts:133
Minimal subset of the DOM File interface used by OpfsSpoolReader.
Extends
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
name | readonly | string | The file's name. | - | src/batteries/storage/opfs/index.ts:135 |
size | readonly | number | Byte length of the blob. | OpfsBlob.size | src/batteries/storage/opfs/index.ts:121 |
Methods
slice()
ts
slice(
start?: number,
end?: number,
contentType?: string): OpfsBlob;Defined in: src/batteries/storage/opfs/index.ts:123
Return a sub-range of the blob as a new blob.
Parameters
| Parameter | Type |
|---|---|
start? | number |
end? | number |
contentType? | string |
Returns
Inherited from
stream()
ts
stream(): OpfsReadableStream;Defined in: src/batteries/storage/opfs/index.ts:127
Open a readable byte stream over the blob.
Returns
Inherited from
text()
ts
text(): Promise<string>;Defined in: src/batteries/storage/opfs/index.ts:125
Read the blob's contents as text.
Returns
Promise<string>