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