🚧 Still under progress. Soon will be finished.

Type

INTERFACE code

Description

A type after being serialized

Properties

Name Type Description
text string

The raw text value of the type

kind TypeKind

The kind of the type

properties readonly Field[]

The object literal type properties

methods readonly Method[]

The object literal type methods

elements readonly (Type | NamedTupleMember)[]

The union, intersection or tuple members.

elementType Type

The base element type of:

  • Array type
  • Operator type
  • Optional type
  • Rest type
source SourceReference

The location of the symbol if it’s a type reference

typeArguments readonly Type[]

The type arguments in a type reference

typeParameters readonly TypeParameter[]

The type parameters in a function type node

parameters readonly Parameter[]

The parameters in a function type node

return Type

The return type in a function type node

constraint Type

The constraint in an infer type node