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

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

MongoDB object modeling designed to work in an asynchronous environment.
Latest
type alias mongoose.DiscriminatorSchema
import { type mongoose } from "https://deno.land/x/mongoose@6.13.4/types/index.d.ts";
const { DiscriminatorSchema } = mongoose;

Type Parameters

DocType
M
TInstanceMethods
TQueryHelpers
TVirtuals
TStaticMethods
DisSchema
definition: DisSchema extends Schema<infer DisSchemaEDocType, infer DisSchemaM, infer DisSchemaInstanceMethods, infer DisSchemaQueryhelpers, infer DisSchemaVirtuals, infer DisSchemaStatics> ? Schema<Omit<DocType, keyof DisSchemaEDocType> & DisSchemaEDocType, DiscriminatorModel<DisSchemaM, M>, DisSchemaInstanceMethods | TInstanceMethods, DisSchemaQueryhelpers | TQueryHelpers, DisSchemaVirtuals | TVirtuals, DisSchemaStatics & TStaticMethods> : Schema<DocType, M, TInstanceMethods, TQueryHelpers, TVirtuals, TStaticMethods>