TypeFacts Type
A `TypeResponse` plus the derived facts of the kinds the skeleton resolves: object members, call signatures, union membership. Everything else stays on the raw response.
Record fields
| Record Field |
Description
|
Full Usage:
AliasTypeArguments
Field type: int list
|
The arguments the type's *alias* was written with, by id (§4.9). On the declaration
form of a generic alias these are its own parameters - `type Mapper
|
Full Usage:
BaseTypes
Field type: int list
|
`extends` bases of an interface or class instance type, by id.
|
|
|
|
`T extends U ? X : Y` (§4.11), where the type is one.
|
Full Usage:
Constraint
Field type: int option
|
A type parameter's `extends` bound, by id (§4.9). Only type parameters carry one.
|
|
|
Full Usage:
Default
Field type: int option
|
A type parameter's default type argument, by id (§4.9).
|
|
Index signatures (§4.10). Kept apart from `Members` because they are not properties: they have no name, and a type may carry one with no members at all.
|
Full Usage:
IntersectionMembers
Field type: int list
|
The constituents of an intersection, in the checker's order. Separate from `UnionMembers` because the two mean opposite things and the passes that read one must never see the other.
|
|
|
The group the type's own symbol is declared in (O7). Meaningful for object types; primitives and unions stay `Unclassified`, which dispositions as the entry group.
|
|
|
|
Full Usage:
SymbolName
Field type: string option
|
Name of the type's own symbol where it has one - what a `reference` emission templates with, and what a widening finding names.
|
|
A tuple's per-element flags, in element order, copied off its *target* - the wire carries them there, not on the reference. The target itself is deliberately left out of the table: deriving it drags all of `Array.prototype` in again for every distinct tuple shape, and nothing but these flags is wanted from it.
|
Full Usage:
TypeArguments
Field type: int list
|
Type arguments of a generic reference, resolved for *every* group - an external
`Array
|
Full Usage:
UnionMembers
Field type: int list
|
|