import { type mongoose } from "https://deno.land/x/mongoose@6.13.4/types/index.d.ts";
const { FlattenMaps } = mongoose;
definition: [K in keyof T]: T[K] extends Map<any, any> ? AnyObject : T[K] extends TreatAsPrimitives ? T[K] : FlattenMaps<T[K]>
x/mongoose/types/index.d.ts>mongoose.FlattenMaps
import { type mongoose } from "https://deno.land/x/mongoose@6.13.4/types/index.d.ts";
const { FlattenMaps } = mongoose;