Skip to content

ReactionV2Codec

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

  • StandardCodec<Variant<"reaction">, ReturnType<typeof lowerStandardContent>>

new ReactionV2Codec(): ReactionV2Codec

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

ReactionV2Codec

StandardCodec<Variant<"reaction">, ReturnType<typeof lowerStandardContent>>.constructor

readonly type: ContentTypeId

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

StandardCodec.type

decode(encoded): object

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

EncodedContent

object

readonly kind: "reaction"

readonly reaction: Reaction

readonly reference: string

readonly optional referenceInboxId?: string

StandardCodec.decode


encode(value): EncodedContent

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

"reaction"

Reaction

string

string

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.

"reaction"

Reaction

string

string

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.

"reaction"

Reaction

string

string

boolean

StandardCodec.shouldPush