method mongoose.Schema.prototype.staticimport { mongoose } from "https://deno.land/x/mongoose@8.6.3/types/index.d.ts"; const { Schema } = mongoose; static<K extends keyof TStaticMethods>(name: K, fn: TStaticMethods[K]): thisAdds static "class" methods to Models compiled from this schema. static(obj: [F in keyof TStaticMethods]: TStaticMethods[F] & { [name: string]: (this: TModelType, ...args: any[]) => any; }): thisstatic(name: string, fn: (this: TModelType, ...args: any[]) => any): thisAdds static "class" methods to Models compiled from this schema. Type ParametersK extends keyof TStaticMethodsParametersname: Kfn: TStaticMethods[K]ReturnsthisParametersobj: [F in keyof TStaticMethods]: TStaticMethods[F] & { [name: string]: (this: TModelType, ...args: any[]) => any; }ReturnsthisParametersname: stringfn: (this: TModelType, ...args: any[]) => anyReturnsthis