ConditionBlocksNamespace class
📖 Description
The ConditionBlocksNamespace class holds all the condition 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 ConditionBlock | undefined
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
identifier | string | No | Specifies the block type identifier. |
Return value
Returns the constructor of the ConditionBlock or undefined if the block type is not available.