Class LiteralType

Represents a literal type.

type A = "A"
type B = 1

Hierarchy (view full)

Constructors

Properties

type = "literal"

The type name identifier.

value:
    | null
    | string
    | number
    | bigint
    | boolean

Methods