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