Skip to content

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 Parameter
TState
setState(partial): void;

Defined in: packages/core/src/state/types.ts:53

Parameter Type
partial TState | ((state) => TState)

void

Property Type
getState () => TState
subscribe (listener) => () => void