Skip to main content

ContentCodec

Interface: ContentCodec<T>

Type parameters

Name
T

Implemented by

Properties

contentType

contentType: ContentTypeId

Defined in

MessageContent.ts:45

Methods

decode

decode(content, registry): T

Parameters

NameType
contentEncodedContent
registryCodecRegistry

Returns

T

Defined in

MessageContent.ts:47


encode

encode(content, registry): EncodedContent

Parameters

NameType
contentT
registryCodecRegistry

Returns

EncodedContent

Defined in

MessageContent.ts:46

Was the information on this page helpful?