Coda by Ian Macalinao
    Preparing search index...

    Interface HiddenPrefixTypeNode<TType, TPrefix>

    Prefixes another type with a list of constant values that are written and read but not surfaced as fields to consumers. When decoding, the prefixed constants are consumed and checked against their expected values before being discarded.

    interface HiddenPrefixTypeNode<
        TType extends TypeNode = TypeNode,
        TPrefix extends
            ConstantValueNode[] | undefined = ConstantValueNode[] | undefined,
    > {
        kind: "hiddenPrefixTypeNode";
        prefix?: TPrefix;
        type: TType;
    }

    Type Parameters

    Index
    kind: "hiddenPrefixTypeNode"
    prefix?: TPrefix

    The constant values written before the wrapped type, in order.

    type: TType

    The wrapped type whose serialisation is preceded by the hidden prefix.