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

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

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

Helper type for getting the hydrated document type from the raw document type. The hydrated document type is what new MyModel() returns.

Type Parameters

DocType
optional
TOverrides = { }
optional
TQueryHelpers = { }
definition: IfAny<DocType, any, TOverrides extends Record<string, never> ? Document<unknown, TQueryHelpers, DocType> & Require_id<DocType> : IfAny<TOverrides, Document<unknown, TQueryHelpers, DocType> & Require_id<DocType>, Document<unknown, TQueryHelpers, DocType> & MergeType<Require_id<DocType>, TOverrides>>>