Interface LiteralType

interface LiteralType {
    type: "literal";
    value:
        | null
        | string
        | number
        | boolean
        | {
            negative: boolean;
            value: string;
        };
}

Hierarchy (view full)

Properties

Properties

type = "literal"

The type name identifier.

value:
    | null
    | string
    | number
    | boolean
    | {
        negative: boolean;
        value: string;
    }