Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a literal type.

type A = "A"
type B = 1

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new LiteralType(value: null | string | number | bigint | boolean): LiteralType

Properties

Readonly type

type: "literal" = "literal"

The type name identifier.

value

value: null | string | number | bigint | boolean

Methods

toString

  • toString(): string

visit

Generated using TypeDoc