Function: hasItem()
function hasItem<T>(type, name): boolean;
Defined in: packages/blockly/core/registry.ts:288
Returns whether or not the registry contains an item with the given type and name.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
type | string | Type<T> | The type of the plugin. (e.g. Field, Renderer) |
name | string | The plugin's name. (Ex. field_angle, geras) |
Returns
boolean
True if the registry has an item with the given type and name, false otherwise.