Type for the Values stored in the Reflection for Plugins
const plugins: IPluginsArray[] = Array.from(Reflect.getMetadata(DecoratorKeys.Plugins, target) ?? []); Copy
const plugins: IPluginsArray[] = Array.from(Reflect.getMetadata(DecoratorKeys.Plugins, target) ?? []);
The Plugin Function to add
The Plugin's options, which could be anything because mongoose does not enforce it to be a object
Generated using TypeDoc
Type for the Values stored in the Reflection for Plugins
Example