Skip to content
1 min read · 107 words

Interface: OpfsBlob

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

PropertyModifierType
sizereadonlynumber

Methods

slice()

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

Parameters

ParameterType
start?number
end?number
contentType?string

Returns

OpfsBlob


stream()

ts
stream(): OpfsReadableStream;

Returns

OpfsReadableStream


text()

ts
text(): Promise<string>;

Returns

Promise<string>