import { type mongoose } from "https://deno.land/x/mongoose@6.12.9/types/index.d.ts";
const { DocumentDefinition } = mongoose;
definition: [K in keyof Omit<T, Exclude<keyof Document, "_id" | "id" | "__v">>]: [Extract<T[K], mongodb.ObjectId>] extends [never] ? T[K] extends TreatAsPrimitives ? T[K] : LeanDocumentElement<T[K]> : T[K] | string