Function: isValidTransition()
isValidTransition(
from,to):boolean
Defined in: packages/core/src/domain/value-objects/change-state.ts:51
Returns whether transitioning from from to to is a valid lifecycle move.
Parameters
from
The current state
to
The proposed next state
Returns
boolean
true if the transition is permitted, false otherwise