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