Interface ContentCodec<T>

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

Type Parameters

  • T

Implemented by

Properties

contentType: ContentTypeId
shouldPush: ((content) => boolean)

Type declaration

    • (content): boolean
    • Parameters

      • content: T

      Returns boolean

Methods