🚧
Still under progress. Soon will be finished.
Description
Represents the reflected conditional type.
For example: type foo<T> = T extends boolean ? 1 : 0
Methods
-
getContext
codegetContext(): ProjectContext
Returns
ProjectContext
: -
getTSNode
codegetTSNode(): ConditionalTypeNode
Returns
ConditionalTypeNode
: -
getTSType
codegetTSType(): Type
Returns
Type
: -
getKind
codegetKind(): TypeKind
Returns
TypeKind
: -
getText
codegetText(): string
Returns
string
: -
getCheckType
codegetCheckType(): ReflectedTypeNode<TypeNode>
Returns
ReflectedTypeNode<TypeNode>
: -
getExtendsType
codegetExtendsType(): ReflectedTypeNode<TypeNode>
Returns
ReflectedTypeNode<TypeNode>
: -
getTrueType
codegetTrueType(): ReflectedTypeNode<TypeNode>
Returns
ReflectedTypeNode<TypeNode>
: -
getFalseType
codegetFalseType(): ReflectedTypeNode<TypeNode>
Returns
ReflectedTypeNode<TypeNode>
: -
serialize
codeSerializes the reflected type
serialize(): Type
Returns
Type
:The type as a serializable object