Skip to content
public-library›Rules›Zustand›Define typed state and named actions

Define typed state and named actions

Type each store as its state plus named actions, and change state only through those actions. Each action should express one domain operation and keep related fields consistent.

In the full rule