Skip to content

CodecRegistry

Defined in: sdks/js/node-sdk/dist/index.d.ts:6

new CodecRegistry(codecs): CodecRegistry

Defined in: sdks/js/node-sdk/dist/index.d.ts:8

ContentCodec[]

CodecRegistry

getCodec<ContentType>(contentType): ContentCodec<ContentType> | undefined

Defined in: sdks/js/node-sdk/dist/index.d.ts:15

Gets the codec for a given content type

ContentType = unknown

ContentTypeId

The content type to get the codec for

ContentCodec<ContentType> | undefined

The codec, if found