Type Alias Effect<D, N>

Effect<D, N>: _Effect<D, ValueOf<{
    [V in keyof Get<D, ["states"]>]: Get<D, ["states", V, "effect"]> extends Definition.Effect<infer E>
        ? N extends E
            ? V
            : never
        : never
}>>

The type of the effect function.

Type Parameters

  • D

    The type of the state machine definition.

  • N

    The type of effect name.