import { type mongoose } from "https://deno.land/x/mongoose@8.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.
definition: IfAny<DocType, any, TOverrides extends Record<string, never> ? Document<unknown, TQueryHelpers, DocType> & Default__v<Require_id<DocType>> : IfAny<TOverrides, Document<unknown, TQueryHelpers, DocType> & Default__v<Require_id<DocType>>, Document<unknown, TQueryHelpers, DocType> & MergeType<Default__v<Require_id<DocType>>, TOverrides>>>