Function: registerMixin()
function registerMixin(name, mixinObj): void;
Defined in: packages/blockly/core/extensions.ts:54
Registers a new extension function that adds all key/value of mixinObj.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | The name of this extension. |
mixinObj | any | The values to mix in. |
Returns
void
Throws
if the extension name is empty or the extension is already registered.