Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Blob

A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.

interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(
start?: number,
end?: number,
contentType?: string,
): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}
var Blob: {
prototype: Blob;
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
}
;

§Properties

§
readonly size: number
[src]
§
readonly type: string
[src]

§Methods

§
arrayBuffer(): Promise<ArrayBuffer>
[src]
§
slice(
start?: number,
end?: number,
contentType?: string,
): Blob
[src]
§
stream(): ReadableStream<Uint8Array>
[src]
§
text(): Promise<string>
[src]