import { type mongoose } from "https://deno.land/x/mongoose@6.13.4/types/index.d.ts";
const { LeanDocumentOrArray } = mongoose;
definition: 0 extends (1 & T) ? T : T extends unknown[] ? LeanDocument<T[number]>[] : T extends Document ? LeanDocument<T> : T