Function: isCapabilityState()
isCapabilityState(
value):value is CapabilityState
Validates an untyped capability declaration, including the fields each state owns. JavaScript and third-party adapters reach the registry unchecked by the compiler, so this is the boundary that keeps malformed states out.
Parameters
value
unknown
Returns
value is CapabilityState