@statesync/mobx / MobXStoreLike
Type Alias: MobXStoreLike<State>
ts
type MobXStoreLike<State> = State;Defined in: mobx.ts:17
Structural type alias representing a MobX observable object.
In MobX, a "store" is typically a class instance with properties marked as observable via makeObservable / makeAutoObservable, or a plain object wrapped with observable(). This type alias makes that semantic explicit while keeping the adapter dependency-free from the mobx package.
Any object whose shape matches State can be used, including a real MobX observable created with observable() or a class instance using makeAutoObservable(this).
Type Parameters
| Type Parameter | Description |
|---|---|
State extends Record<string, unknown> | The shape of the observable store's state object. |
