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.
Go to Latest
type alias mongoose.DiscriminatorSchema
import { type mongoose } from "https://deno.land/x/mongoose@7.8.2/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<MergeType<DocType, DisSchemaEDocType>, DiscriminatorModel<DisSchemaM, M>, DisSchemaInstanceMethods | TInstanceMethods, DisSchemaQueryhelpers | TQueryHelpers, DisSchemaVirtuals | TVirtuals, DisSchemaStatics & TStaticMethods> : Schema<DocType, M, TInstanceMethods, TQueryHelpers, TVirtuals, TStaticMethods>