🚧 Still under progress. Soon will be finished.

InterfaceNode

CLASS code

Description

Represents the reflected node of an interface declaration

Methods

  • getName

    code
    getName(): string

    Returns

    string:
  • getNodeType

    code
    getNodeType(): RootNodeType

    Returns

    RootNodeType:
  • getKind

    code
    getKind(): DeclarationKind.Interface

    Returns

    DeclarationKind.Interface:
  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getTSNode

    code
    getTSNode(): InterfaceDeclaration

    Returns

    InterfaceDeclaration:
  • getLine

    code
    getLine(): number

    Returns

    number:
  • getIndexSignature

    code
    getIndexSignature(): IndexSignatureNode | null

    Returns

    IndexSignatureNode | null:
  • getProperties

    code
    getProperties(): PropertyNode[]

    Returns

    PropertyNode[]:
  • getPropertyWithName

    code
    getPropertyWithName(name: string): PropertyNode | null

    Parameters

    name string

    Returns

    PropertyNode | null:
  • getMethods

    code
    getMethods(): FunctionNode[]

    Returns

    FunctionNode[]:
  • getMethodWithName

    code
    getMethodWithName(name: string): FunctionNode | null

    Parameters

    name string

    Returns

    FunctionNode | null:
  • getTypeParameters

    code
    getTypeParameters(): TypeParameterNode[]

    Returns

    TypeParameterNode[]:
  • getNamespace

    code
    getNamespace(): string

    Returns

    string:
  • getJSDoc

    code
    getJSDoc(): CommentNode

    Returns

    CommentNode:
  • getHeritage

    code
    getHeritage(): ExpressionWithTypeArgumentsNode[]

    Returns

    ExpressionWithTypeArgumentsNode[]:
  • serialize

    code

    Serializes the reflected node

    serialize(): InterfaceDeclaration

    Returns

    InterfaceDeclaration:

    The reflected node as a serializable object