Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.7.0/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>>>