🚧
Still under progress. Soon will be finished.
Description
A reflected node that represents a declaration.
Methods
-
getName
codeReturns the name of the declaration.
getName(): string
Returns
string
: -
getJSDoc
codeReturns the documentation comment attached to this declaration.
getJSDoc(): CommentNode | null
Returns
CommentNode | null
: -
getKind
codeReturns the type of declaration
getKind(): DeclarationKind | MemberKind
Returns
DeclarationKind | MemberKind
: -
getNamespace
codeReturns the namespaces where this declaration is inside. If no namespace is found, an empty string is returned.
getNamespace(): string
Returns
string
: -
getNodeType
codeThe type of node. Can be an import, an export or a declaration
getNodeType(): RootNodeType
Returns
RootNodeType
: -
getTSNode
codeThe original node generated by the TypeScript compiler
getTSNode(): TSNode | null
Returns
TSNode | null
: -
getContext
codeReturns the context in which the AST node was created. The context contains useful utilities like the TS type checker.
getContext(): ProjectContext
Returns
ProjectContext
: -
serialize
codeReturns a simple readonly JavaScript object without methods or internal state.
serialize(): Model
Returns
Model
: