Skip to main content

NodeBlocksNamespace class

📖 Description​

The NodeBlocksNamespace class holds all the node blocks for a builder namespace.

🗃️ Fields​


🏷️ all​

Retrieves a list of registered blocks.

Type​

typeof NodeBlock[]


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

NameTypeOptionalDescription
identifierstringNoSpecifies the block type identifier.

Return value​

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