- Model<
TProps extends ModelProps,
A extends [],
FS extends Record<string, any> = never,
TS extends Record<string, any> = never,
>(
fnModelProps: (...args: A) => TProps,
modelOptions?: ModelOptions<TProps, FS, TS>,
): _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 extends ModelProps,
FS extends Record<string, any> = never,
TS extends Record<string, any> = never,
>(
modelProps: TProps,
modelOptions?: ModelOptions<TProps, FS, TS>,
): _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.