Skip to content
1 min read · 126 words

Interface: OpfsBlob

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

Minimal subset of the DOM Blob interface used by OpfsSpoolReader streaming-mode random-access reads. Real OPFS handles return a File here; we narrow to the methods we actually call.

Extended by

Properties

PropertyModifierTypeDefined in
sizereadonlynumberbatteries/storage/opfs/index.ts:102

Methods

slice()

ts
slice(
   start?: number,
   end?: number,
   contentType?: string): OpfsBlob;

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

Parameters

ParameterType
start?number
end?number
contentType?string

Returns

OpfsBlob


stream()

ts
stream(): OpfsReadableStream;

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

Returns

OpfsReadableStream


text()

ts
text(): Promise<string>;

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

Returns

Promise<string>