🚧 Still under progress. Soon will be finished.

PropertyNode

CLASS code

Description

Represents the reflected node of a property declaration

Methods

  • getName

    code
    getName(): string

    Returns

    string:
  • getKind

    code
    getKind(): MemberKind.Property

    Returns

    MemberKind.Property:
  • getTSNode

    code
    getTSNode(): PropertyLikeNode

    Returns

    PropertyLikeNode:
  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getLine

    code
    getLine(): number

    Returns

    number:
  • getType

    code
    getType(): ReflectedNode<Type, Node>

    Returns

    ReflectedNode<Type, Node>:
  • getDefault

    code
    getDefault(): unknown

    Returns

    unknown:
  • getModifier

    code
    getModifier(): ModifierType | null

    Returns

    ModifierType | null:
  • getJSDoc

    code
    getJSDoc(): CommentNode

    Returns

    CommentNode:
  • getDecorators

    code
    getDecorators(): DecoratorNode[]

    Returns

    DecoratorNode[]:
  • isOptional

    code
    isOptional(): boolean

    Returns

    boolean:
  • isStatic

    code
    isStatic(): boolean

    Returns

    boolean:
  • isReadOnly

    code
    isReadOnly(): boolean

    Returns

    boolean:
  • isWriteOnly

    code
    isWriteOnly(): boolean

    Returns

    boolean:
  • isAbstract

    code
    isAbstract(): boolean

    Returns

    boolean:
  • isInherited

    code
    isInherited(): boolean

    Returns

    boolean:
  • overrides

    code
    overrides(): boolean

    Returns

    boolean:
  • serialize

    code

    Serializes the reflected node

    serialize(): Field

    Returns

    Field:

    The reflected node as a serializable object