Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mongoose/types/index.d.ts>mongoose.DiscriminatorModel

MongoDB object modeling designed to work in an asynchronous environment.
Go to Latest
type alias mongoose.DiscriminatorModel
import { type mongoose } from "https://deno.land/x/mongoose@7.8.2/types/index.d.ts";
const { DiscriminatorModel } = mongoose;
definition: T extends Model<infer T, infer TQueryHelpers, infer TInstanceMethods, infer TVirtuals> ? M extends Model<infer M, infer MQueryHelpers, infer MInstanceMethods, infer MVirtuals> ? Model<Omit<M, keyof T> & T, MQueryHelpers | TQueryHelpers, MInstanceMethods | TInstanceMethods, MVirtuals | TVirtuals> : M : M