Skip to content

AttachmentCodec

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:40

  • StandardCodec<Attachment, ReturnType<typeof lowerAttachment>>

new AttachmentCodec(): AttachmentCodec

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:41

AttachmentCodec

StandardCodec<Attachment, ReturnType<typeof lowerAttachment>>.constructor

readonly type: ContentTypeId

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:10

StandardCodec.type

decode(encoded): Attachment

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:17

EncodedContent

Attachment

StandardCodec.decode


encode(value): EncodedContent

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:14

Attachment

EncodedContent

StandardCodec.encode


fallback(value): string | undefined

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:15

Text for recipients without this codec. Absent: no fallback.

Attachment

string | undefined

StandardCodec.fallback


shouldPush(value): boolean

Defined in: sdks/node/dist/runtime/public/codecs.d.ts:16

Whether sending this value notifies recipients. Absent: it does.

Attachment

boolean

StandardCodec.shouldPush