method mongoose.Schema.prototype.pluginimport { mongoose } from "https://deno.land/x/mongoose@8.7.0/types/index.d.ts"; const { Schema } = mongoose; plugin<PFunc extends PluginFunction<DocType, TModelType, any, any, any, any>, POptions extends Parameters<PFunc>[1] = Parameters<PFunc>[1]>(fn: PFunc, opts?: POptions): thisRegisters a plugin for this schema. Registers a plugin for this schema. Type ParametersPFunc extends PluginFunction<DocType, TModelType, any, any, any, any>optionalPOptions extends Parameters<PFunc>[1] = Parameters<PFunc>[1]Parametersfn: PFuncoptionalopts: POptionsReturnsthis