Type Alias PluginManagerOptions

PluginManager options.

type PluginManagerOptions = {
    noEventAdd?: boolean;
    noEventDestroy?: boolean;
    noEventRemoval?: boolean;
    noEventSetEnabled?: boolean;
    noEventSetOptions?: boolean;
    throwNoMethod?: boolean;
    throwNoPlugin?: boolean;
}
Index

Properties

noEventAdd?: boolean

If true this prevents plugins from being added by plugins:add and plugins:add:all events forcing direct method invocation for addition.

noEventDestroy?: boolean

If true this prevents the plugin manager from being destroyed by plugins:destroy:manager forcing direct method invocation for destruction.

noEventRemoval?: boolean

If true this prevents plugins from being removed by plugins:remove and plugins:remove:all events forcing direct method invocation for removal.

noEventSetEnabled?: boolean

If true this prevents the plugins from being enabled / disabled from the eventbus via plugins:set:enabled.

noEventSetOptions?: boolean

If true this prevents setting options for the plugin manager by plugins:set:options forcing direct method invocation for setting options.

throwNoMethod?: boolean

If true then when a method fails to be invoked by any plugin an exception will be thrown.

throwNoPlugin?: boolean

If true then when no plugin is matched to be invoked an exception will be thrown.