Interface ContentCodec<T>

interface ContentCodec<T> {
    contentType: ContentTypeId;
    decode(content, registry): T;
    encode(content, registry): EncodedContent<Record<string, string>>;
    fallback(content): undefined | string;
}

Type Parameters

  • T

Implemented by

Properties

Methods

Properties

contentType: ContentTypeId

Methods

Generated using TypeDoc