🚧 Still under progress. Soon will be finished.

ConditionalTypeNode

CLASS code

Description

Represents the reflected conditional type. For example: type foo<T> = T extends boolean ? 1 : 0

Methods

  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getTSNode

    code
    getTSNode(): ConditionalTypeNode

    Returns

    ConditionalTypeNode:
  • getTSType

    code
    getTSType(): Type

    Returns

    Type:
  • getKind

    code
    getKind(): TypeKind

    Returns

    TypeKind:
  • getText

    code
    getText(): string

    Returns

    string:
  • getCheckType

    code
    getCheckType(): ReflectedTypeNode<TypeNode>

    Returns

    ReflectedTypeNode<TypeNode>:
  • getExtendsType

    code
    getExtendsType(): ReflectedTypeNode<TypeNode>

    Returns

    ReflectedTypeNode<TypeNode>:
  • getTrueType

    code
    getTrueType(): ReflectedTypeNode<TypeNode>

    Returns

    ReflectedTypeNode<TypeNode>:
  • getFalseType

    code
    getFalseType(): ReflectedTypeNode<TypeNode>

    Returns

    ReflectedTypeNode<TypeNode>:
  • serialize

    code

    Serializes the reflected type

    serialize(): Type

    Returns

    Type:

    The type as a serializable object