method mongoose.Schema.prototype.staticimport { mongoose } from "https://deno.land/x/mongoose@6.13.4/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: M, ...args: any[]) => any; }): thisstatic(name: string, fn: (this: M, ...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: M, ...args: any[]) => any; }ReturnsthisParametersname: stringfn: (this: M, ...args: any[]) => anyReturnsthis