- ExtendedModel<
TProps extends ModelProps,
TModelClass extends AbstractModelClass<AnyModel>,
A extends [],
FS extends Record<string, any> = never,
TS extends Record<string, any> = never,
>(
genFn: (...args: A) => { baseModel: TModelClass; props: TProps },
modelOptions?: ModelOptions<TProps, FS, TS>,
): _Model<InstanceType<TModelClass>, TProps, FS, TS> - ExtendedModel<
TProps extends ModelProps,
TModelClass extends AbstractModelClass<AnyModel>,
FS extends Record<string, any> = never,
TS extends Record<string, any> = never,
>(
baseModel: TModelClass,
modelProps: TProps,
modelOptions?: ModelOptions<TProps, FS, TS>,
): _Model<InstanceType<TModelClass>, TProps, FS, TS> & Omit<
TModelClass,
"prototype",
>
Base abstract class for models that extends another model.