CodecRegistry
Defined in: sdks/js/node-sdk/src/CodecRegistry.ts:7
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CodecRegistry(
codecs):CodecRegistry
Defined in: sdks/js/node-sdk/src/CodecRegistry.ts:10
Parameters
Section titled “Parameters”codecs
Section titled “codecs”ContentCodec[]
Returns
Section titled “Returns”CodecRegistry
Methods
Section titled “Methods”getCodec()
Section titled “getCodec()”getCodec<
ContentType>(contentType):ContentCodec<ContentType> |undefined
Defined in: sdks/js/node-sdk/src/CodecRegistry.ts:22
Gets the codec for a given content type
Type Parameters
Section titled “Type Parameters”ContentType
Section titled “ContentType”ContentType = unknown
Parameters
Section titled “Parameters”contentType
Section titled “contentType”ContentTypeId
The content type to get the codec for
Returns
Section titled “Returns”ContentCodec<ContentType> | undefined
The codec, if found

