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