Interface JSContentCodec<T>

interface JSContentCodec<T> {
    contentType: ContentTypeId;
    decode(encodedContent): T;
    encode(content): EncodedContent;
    fallback(content): undefined | string;
    shouldPush(content): boolean;
}

Type Parameters

  • T

Properties

contentType: ContentTypeId

Methods