Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a literal type.

type A = "A"
type B = 1

Hierarchy

Index

Constructors

Properties

Methods

Constructors

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

Properties

type: "literal" = "literal"

The type name identifier.

value: null | string | number | bigint | boolean

Methods

  • toString(): string

Generated using TypeDoc