Skip to main content

ConditionBlocksNamespace class

📖 Description

The ConditionBlocksNamespace class holds all the condition blocks for a builder namespace.

🗃️ Fields


🏷️ all

Retrieves a list of registered blocks.

Type

typeof ConditionBlock[]


🏷️ 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

NameTypeOptionalDescription
identifierstringNoSpecifies the block type identifier.

Return value

Returns the constructor of the ConditionBlock or undefined if the block type is not available.