Skip to content
1 min read · 139 words

Interface: OpfsFile

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

Minimal subset of the DOM File interface used by OpfsSpoolReader.

Extends

Properties

PropertyModifierTypeInherited fromDefined in
namereadonlystring-batteries/storage/opfs/index.ts:112
sizereadonlynumberOpfsBlob.sizebatteries/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

Inherited from

OpfsBlob.slice


stream()

ts
stream(): OpfsReadableStream;

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

Returns

OpfsReadableStream

Inherited from

OpfsBlob.stream


text()

ts
text(): Promise<string>;

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

Returns

Promise<string>

Inherited from

OpfsBlob.text