PluginRegistry constructor options.

interface IOptions {
    validatePlugin?: ((plugin) => boolean);
}

Hierarchy

  • IOptions

    Properties

    Properties

    validatePlugin?: ((plugin) => boolean)

    Validate that a plugin is allowed to be registered.

    Default is () => true.

    Type declaration

      • (plugin): boolean
      • Parameters

        • plugin: IPlugin<any, any>

          The plugin to validate

        Returns boolean

    Returns

    Whether the plugin can be registered or not.

    Notes

    We recommend you print a console message with the reason a plugin is invalid.