Skip to main content

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

NameTypeOptionalDescription
nodeNodeNoReference to the node.
contextContextNoReference to the context.

Return value

Returns a NodeBlock or HeadlessBlock instance (depending on the block type) or undefined if the block is invalid.