import { type mongoose } from "https://deno.land/x/mongoose@8.6.4/types/index.d.ts";
const { SchemaDefinition } = mongoose;
definition: T extends undefined ? { [path: string]: SchemaDefinitionProperty; } : [path in keyof T]?: SchemaDefinitionProperty<T[path], EnforcedDocType>