ZustandLikeStore
Defined in: packages/core/src/state/types.ts:51
The part of a Zustand store’s API that createZustandStoreController uses. Structural, so
the published types resolve without zustand installed; any real Zustand store satisfies it.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
TState |
Methods
Section titled “Methods”setState()
Section titled “setState()”setState(partial): void;Defined in: packages/core/src/state/types.ts:53
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
partial |
TState | ((state) => TState) |
Returns
Section titled “Returns”void
Properties
Section titled “Properties”| Property | Type |
|---|---|
getState |
() => TState |
subscribe |
(listener) => () => void |