Skip to content

Defined in: zaun/js/index.d.ts:693

new Attachment(): Attachment

Attachment

readonly contentType: string

Defined in: zaun/js/index.d.ts:698


readonly id: string

Defined in: zaun/js/index.d.ts:695


readonly message: Message

Defined in: zaun/js/index.d.ts:694


readonly name: string

Defined in: zaun/js/index.d.ts:696


readonly size: number

Defined in: zaun/js/index.d.ts:697

download(): Promise<Uint8Array<ArrayBufferLike>>

Defined in: zaun/js/index.d.ts:700

The bytes, checked against the attachment’s size and SHA3-256.

Promise<Uint8Array<ArrayBufferLike>>


open(): Promise<AttachmentReader>

Defined in: zaun/js/index.d.ts:703

The file to read while it downloads, once its first chunk is here and the file’s length is the attachment’s. The host’s download permission and limits apply as for download.

Promise<AttachmentReader>