import { type mongoose } from "https://deno.land/x/mongoose@6.12.9/types/index.d.ts";
const { LeanType } = mongoose;
definition: 0 extends (1 & T) ? T : T extends TreatAsPrimitives ? T : T extends Types.ArraySubdocument ? Omit<LeanDocument<T>, "parentArray" | "ownerDocument" | "parent"> : T extends Types.Subdocument ? Omit<LeanDocument<T>, "$isSingleNested" | "ownerDocument" | "parent"> : LeanDocument<T>