Skip to content

@ue-too/being-devtools / MachineLike

型エイリアス: MachineLike ​

MachineLike = object

定義: registry.ts:20

The structural surface a machine must have to be attached.

Remarks ​

Concrete TemplateStateMachines with literal-union States are not assignable to StateMachine<any, any, any, any> (the conditional in State['states'] plus method variance defeats any-erasure), so the public parameter type is this minimal shape, which they satisfy without a cast. The erasure happens once, inside MachineRegistry.attach.

プロパティ ​

context? ​

optional context: unknown

定義: registry.ts:25


currentState ​

currentState: unknown

定義: registry.ts:22


possibleStates ​

possibleStates: readonly unknown[]

定義: registry.ts:24


states ​

states: object

定義: registry.ts:23

メソッド ​

happens() ​

happens(...args): unknown

定義: registry.ts:21

パラメータ ​

args ​

...any[]

戻り値 ​

unknown


onEventResult()? ​

optional onEventResult(callback): void | () => void

定義: registry.ts:27

パラメータ ​

callback ​

(...args) => void

戻り値 ​

void | () => void


reset() ​

reset(): void

定義: registry.ts:26

戻り値 ​

void