@karmaniverous/entity-tools
    Preparing search index...

    Type Alias EncodeDecodeMismatchError<K, E, D>

    Branded error shape indicating encode/decode type disagreement for a key.

    type EncodeDecodeMismatchError<K extends string, E, D> = {
        __error__: "EncodeDecodeMismatch";
        decodeReturn: D;
        encodeParam: E;
        key: K;
    }

    Type Parameters

    • K extends string
    • E
    • D
    Index
    __error__: "EncodeDecodeMismatch"

    Error discriminant.

    decodeReturn: D

    The inferred decode return type for the mismatched key.

    encodeParam: E

    The inferred encode parameter type for the mismatched key.

    key: K

    Transcode key whose encode and decode types disagree.