- Model<TProps, A, FS, TS>(fnModelProps, modelOptions?): _Model<unknown, TProps, FS, TS>
Type Parameters
- TProps extends ModelProps
- A extends []
- FS extends Record<string, any> = never
- TS extends Record<string, any> = never
- Model<TProps, FS, TS>(modelProps, modelOptions?): _Model<unknown, TProps, FS, TS>
Type Parameters
- TProps extends ModelProps
- FS extends Record<string, any> = never
- TS extends Record<string, any> = never
Base abstract class for models.
Never override the constructor, use
onInit
oronAttachedToRootStore
instead.