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.
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>>>