Logo Xantham

TypeKindPrimitive Type

Discriminated union of all high-level TypeScript type shapes the reader can produce. Each case mirrors a concrete TS type or declaration form (see individual types above).

Union cases

Union case Description

Any

Full Usage: Any

BigInt

Full Usage: BigInt

Boolean

Full Usage: Boolean

ESSymbol

Full Usage: ESSymbol

Integer

Full Usage: Integer

Never

Full Usage: Never

NonPrimitive

Full Usage: NonPrimitive

Null

Full Usage: Null

Number

Full Usage: Number

String

Full Usage: String

Undefined

Full Usage: Undefined

Unknown

Full Usage: Unknown

Void

Full Usage: Void

Instance members

Instance member Description

this.IsAny

Full Usage: this.IsAny

Returns: bool
Returns: bool

this.IsBigInt

Full Usage: this.IsBigInt

Returns: bool
Returns: bool

this.IsBoolean

Full Usage: this.IsBoolean

Returns: bool
Returns: bool

this.IsESSymbol

Full Usage: this.IsESSymbol

Returns: bool
Returns: bool

this.IsInteger

Full Usage: this.IsInteger

Returns: bool
Returns: bool

this.IsNever

Full Usage: this.IsNever

Returns: bool
Returns: bool

this.IsNonPrimitive

Full Usage: this.IsNonPrimitive

Returns: bool
Returns: bool

this.IsNull

Full Usage: this.IsNull

Returns: bool
Returns: bool

this.IsNumber

Full Usage: this.IsNumber

Returns: bool
Returns: bool

this.IsString

Full Usage: this.IsString

Returns: bool
Returns: bool

this.IsUndefined

Full Usage: this.IsUndefined

Returns: bool
Returns: bool

this.IsUnknown

Full Usage: this.IsUnknown

Returns: bool
Returns: bool

this.IsVoid

Full Usage: this.IsVoid

Returns: bool
Returns: bool

this.TypeKey

Full Usage: this.TypeKey

Returns: int

Maps directly to TypeScript primitive types and some special built-ins (e.g., `any`, `unknown`, `never`, `void`, `undefined`, `null`, `symbol`).

Returns: int

Type something to start searching.