🚧 Still under progress. Soon will be finished.

NamedTupleMember

INTERFACE code

Description

The member of a tuple type

Properties

Name Type Description
name string

The name of the member

optional boolean

If the tuple member is optional

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