🚧
Still under progress. Soon will be finished.
Description
Represents the reflected binding element node. A binding element appears in the named parameters of a signature.
Methods
-
getTSNode
codeThe TypeScript AST node related to this reflected node
getTSNode(): BindingElement
Returns
BindingElement
:The original TypeScript node
-
getContext
codeThe context includes useful APIs that are shared across all the reflected symbols. Some APIs include the parsed configuration options, the system interface, the type checker
getContext(): ProjectContext
Returns
ProjectContext
:The analyser context
-
getName
codeReads the name of the binding element node
getName(): string
Returns
string
:The name of the binding element
-
getDefault
codeThe default value of the binding element.
getDefault(): unknown
Returns
unknown
:The default value, otherwise it will return
undefined
-
serialize
codeSerializes the reflected node
serialize(): BindingElement
Returns
BindingElement
:The reflected node as a serializable object