Interface IPluginsArray

Type for the Values stored in the Reflection for Plugins

Example

const plugins: IPluginsArray[] = Array.from(Reflect.getMetadata(DecoratorKeys.Plugins, target) ?? []);
interface IPluginsArray {
    mongoosePlugin: Func;
    options: any;
}

Properties

mongoosePlugin: Func

The Plugin Function to add

options: any

The Plugin's options, which could be anything because mongoose does not enforce it to be a object