NodeBlocksNamespace class
📖 Description
The NodeBlocksNamespace
class holds all the node blocks for a runner namespace. It used to supply NodeBlock
and HeadlessBlock
instances for nodes.
🗃️ Fields
🏷️ identifier
Contains the namespace identifier.
Type
string
▶️ Methods
🔧 create
Creates a new instance of a node block for the supplied node and context.
Signature
create(node: Node, context: Context): NodeBlock | HeadlessBlock | undefined
Parameters
Name | Type | Optional | Description |
---|---|---|---|
node | Node | No | Reference to the node. |
context | Context | No | Reference to the context. |
Return value
Returns a NodeBlock
or HeadlessBlock
instance (depending on the block type) or undefined
if the block is invalid.