🚧 Still under progress. Soon will be finished.

TypeParameterNode

CLASS code

Description

Represents the reflected node of a type parameter

Methods

  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getName

    code
    getName(): string

    Returns

    string:
  • getTSNode

    code
    getTSNode(): TypeParameterDeclaration

    Returns

    TypeParameterDeclaration:
  • getLine

    code
    getLine(): number

    Returns

    number:
  • getDefault

    code
    getDefault(): ReflectedTypeNode<TypeNode> | null

    Returns

    ReflectedTypeNode<TypeNode> | null:
  • getConstraint

    code
    getConstraint(): ReflectedTypeNode<TypeNode> | null

    Returns

    ReflectedTypeNode<TypeNode> | null:
  • hasDefault

    code
    hasDefault(): boolean

    Returns

    boolean:
  • serialize

    code

    Serializes the reflected node

    serialize(): TypeParameter

    Returns

    TypeParameter:

    The reflected node as a serializable object