🚧
Still under progress. Soon will be finished.
Description
Represents the reflected infer type
For example: type foo<T> = T extends Promise<infer U> ? U : never
Methods
-
getContext
codegetContext(): ProjectContext
Returns
ProjectContext
: -
getTSNode
codegetTSNode(): InferTypeNode
Returns
InferTypeNode
: -
getTSType
codegetTSType(): Type
Returns
Type
: -
getKind
codegetKind(): TypeKind
Returns
TypeKind
: -
getText
codegetText(): string
Returns
string
: -
getConstraint
codegetConstraint(): ReflectedTypeNode<TypeNode> | null
Returns
ReflectedTypeNode<TypeNode> | null
: -
serialize
codeSerializes the reflected type
serialize(): Type
Returns
Type
:The type as a serializable object