WriteStateInstance
Reports the current state of an Item together with the transitions that can be executed from it.
Extends
Section titled “Extends”ReadStateInstance<TState>
Type Parameters
Section titled “Type Parameters”TWriteItem
Section titled “TWriteItem”TWriteItem extends WriteItem = WriteItem
The Item type returned by a transition.
TState
Section titled “TState”TState extends string | null = string | null
The state keys of the Template.
TTransitionTypes
Section titled “TTransitionTypes”TTransitionTypes extends object = {[transition: string]: any; }
The transition keys available from the current state.
Properties
Section titled “Properties”transitions
Section titled “transitions”
readonlytransitions:Record<keyofTTransitionTypes,WriteTransitionInstance<TWriteItem>>
Transitions leaving the current state, keyed by transition key; only these can be executed on the Item.
readonlyvalue:TState
The key of the current state.

