Attachment
Defined in: zaun/js/index.d.ts:693
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Attachment():
Attachment
Returns
Section titled “Returns”Attachment
Properties
Section titled “Properties”contentType
Section titled “contentType”
readonlycontentType:string
Defined in: zaun/js/index.d.ts:698
readonlyid:string
Defined in: zaun/js/index.d.ts:695
message
Section titled “message”
readonlymessage:Message
Defined in: zaun/js/index.d.ts:694
readonlyname:string
Defined in: zaun/js/index.d.ts:696
readonlysize:number
Defined in: zaun/js/index.d.ts:697
Methods
Section titled “Methods”download()
Section titled “download()”download():
Promise<Uint8Array<ArrayBufferLike>>
Defined in: zaun/js/index.d.ts:700
The bytes, checked against the attachment’s size and SHA3-256.
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
open()
Section titled “open()”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.
Returns
Section titled “Returns”Promise<AttachmentReader>