1 import { SchemaType } from "./type"; 2 3 export const reference = <T extends new (...args: any[]) => any>(Model: T): InstanceType<T> => { 4 const value = new SchemaType(); 5 value.reference = Model; 6 return value as any; 7 };