🚧 Still under progress. Soon will be finished.

TypePredicateNode

CLASS code

Methods

  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getTSNode

    code
    getTSNode(): TypePredicateNode

    Returns

    TypePredicateNode:
  • getTSType

    code
    getTSType(): Type

    Returns

    Type:
  • getKind

    code
    getKind(): TypeKind

    Returns

    TypeKind:
  • getText

    code
    getText(): string

    Returns

    string:
  • getTargetType

    code
    getTargetType(): ReflectedTypeNode<TypeNode> | null

    Returns

    ReflectedTypeNode<TypeNode> | null:
  • asserts

    code
    asserts(): boolean

    Returns

    boolean:
  • serialize

    code

    Serializes the reflected type

    serialize(): Type

    Returns

    Type:

    The type as a serializable object