blockly > serialization > registry > register
serialization.registry.register() function
Registers the given serializer so that it can be used for serialization and deserialization.
Signature:
export declare function register(name: string, serializer: ISerializer): void;
Parameters
Parameter | Type | Description |
---|---|---|
name | string | The name of the serializer to register. |
serializer | ISerializer | The serializer to register. |
Returns:
void