Coda by Ian Macalinao
    Preparing search index...

    Interface EnumTypeNode<TVariants, TSize>

    A tagged union: a numeric discriminator followed by one of several variant payloads.

    interface EnumTypeNode<
        TVariants extends
            EnumVariantTypeNode[]
            | undefined = EnumVariantTypeNode[] | undefined,
        TSize extends
            NestedTypeNode<NumberTypeNode> = NestedTypeNode<NumberTypeNode>,
    > {
        kind: "enumTypeNode";
        size: TSize;
        variants?: TVariants;
    }

    Type Parameters

    Index
    kind: "enumTypeNode"
    size: TSize

    The numeric type used to serialise the discriminator. The discriminator prepends the serialised variant payload to identify which variant was selected. By default it is the index of the variant (starting at 0), unless the variant provides its own custom discriminator value.

    variants?: TVariants

    The variants of the enum, in declaration order.