Function Model

  • Base abstract class for models.

    Never override the constructor, use onInit or onAttachedToRootStore instead.

    Type Parameters

    • TProps extends ModelProps
    • A extends []
    • FS extends Record<string, any> = never
    • TS extends Record<string, any> = never

    Parameters

    Returns _Model<unknown, TProps, FS, TS>

    TProps Model properties type.

  • Base abstract class for models.

    Never override the constructor, use onInit or onAttachedToRootStore instead.

    Type Parameters

    • TProps extends ModelProps
    • FS extends Record<string, any> = never
    • TS extends Record<string, any> = never

    Parameters

    Returns _Model<unknown, TProps, FS, TS>

    TProps Model properties type.