NodeBlocksNamespace class
📖 Description
The NodeBlocksNamespace
class holds all the node blocks for a builder namespace.
🗃️ Fields
🏷️ all
Retrieves a list of registered blocks.
Type
🏷️ errors
Contains the number of missing block types.
Type
number
🏷️ identifier
Contains the namespace identifier.
Type
string
🏷️ missing
Retrieves the array of missing block types.
Type
string[]
▶️ Methods
🔧 ofType
Retrieves the block constructor of the specified type identifier.
Signature
ofType(identifier: string): typeof NodeBlock | undefined
Parameters
Name | Type | Optional | Description |
---|---|---|---|
identifier | string | No | Specifies the block type identifier. |
Return value
Returns the constructor of the NodeBlock
or undefined
if the block type is not available.