Coda by Ian Macalinao
    Preparing search index...

    Interface ZeroableOptionTypeNode<TItem, TZeroValue>

    An optional value whose absence is signalled by a designated zero value rather than a presence flag.

    interface ZeroableOptionTypeNode<
        TItem extends TypeNode = TypeNode,
        TZeroValue extends
            ConstantValueNode | undefined = ConstantValueNode | undefined,
    > {
        item: TItem;
        kind: "zeroableOptionTypeNode";
        zeroValue?: TZeroValue;
    }

    Type Parameters

    Index
    item: TItem

    The type carried by the option when present.

    kind: "zeroableOptionTypeNode"
    zeroValue?: TZeroValue

    The constant value that signals absence. When omitted, the all-zero byte pattern of the item type is used.