Skip to Content
This is documentation for Trrack 2.0. Click here for legacy Trrack documentation →
Type AliasesType Alias: StateChangeFunction()<State, Payload>

@trrack/core


@trrack/core / StateChangeFunction

Type Alias: StateChangeFunction()<State, Payload>

StateChangeFunction<State, Payload> = (state, payload) => void | ReturnType<ProduceWrappedStateChangeFunction<State>>

Defined in: registry/action.ts:16 

Type Parameters

State

State

Payload

Payload

Parameters

state

State

payload

Payload

Returns

void | ReturnType<ProduceWrappedStateChangeFunction<State>>

Last updated on