import { Model } from '../override/Model'; import { ModelCtor } from '../override/ModelCtor'; import { AssociationMethods, AssociationToModels, AssociationToObject } from './AssociationType'; export type ModelInstance< T extends ModelCtor, M extends Model = T extends ModelCtor ? R : Model, > = RealModel; export type RealModel = M & M['_attributes'] & AssociationToModels & AssociationMethods; export type ModelObject< T extends ModelCtor, P extends Model = T extends ModelCtor ? R : Model, > = P['_attributes'] & { [K in keyof P['_type_assocs']]: AssociationToObject; } & { [key: string]: unknown };