sesaparcours
    Preparing search index...
    • Registers a class based on a type and name.

      Type Parameters

      • T

      Parameters

      • type: string | Blockly.registry.Type<T>

        The type of the plugin. (e.g. Field, Renderer)

      • name: string

        The plugin's name. (Ex. field_angle, geras)

      • registryItem: Object | ((_0: any[]) => any)

        The class or object to register.

      • Optionalopt_allowOverrides: boolean

        True to prevent an error when overriding an already registered item.

      Returns void

      if the type or name is empty, a name with the given type has already been registered, or if the given class or object is not valid for it's type.