Skip to content

@iamcalegari/mongoat / Plugin

Type Alias: Plugin<ModelType>

Plugin<ModelType> = PluginSetup<ModelType> | PluginObject<ModelType>

Defined in: src/types/plugin.ts:75

A model plugin: either a bare setup function or an object carrying an explicit name alongside its setup. Parametrizable plugins are plain factory functions that return one of these two shapes — no extra API is needed to support options.

Type Parameters

ModelType

ModelType extends Document = Document