🚧
Still under progress. Soon will be finished.
Description
Represents a top level node (import, export or declaration)
Methods
-
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(): T | null
Returns
T | 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
: