Skip to content

@iamcalegari/mongoat / PluginObject

Interface: PluginObject<ModelType>

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

A plugin expressed as an object with an explicit name — preferred when the identity needs to be stable independent of the setup function's own name (e.g. a setup function returned by a factory).

Type Parameters

ModelType

ModelType extends Document = Document

Properties

name?

optional name?: string

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


setup

setup: PluginSetup<ModelType>

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