Metakit / @doeixd/metakit/temporal

Step

interface · packages/metakit/src/temporalWalk.ts:5

interface Step<State, Name extends string, Of extends string = never> {
  readonly name: Name
  readonly of?: Of
  readonly after?: ReadonlyArray<Step<State, NoInfer<Name>, string>>
  readonly run: (state: State) => State
}

One step of a scenario: a send, an answer, a reconnect.

Members

Step.name

property · packages/metakit/src/temporalWalk.ts:6

readonly name: Name

Step.of

property · packages/metakit/src/temporalWalk.ts:8

readonly of?: Of

The Message or transition this step is an instance of: what an obligation's over names.

Step.after

property · packages/metakit/src/temporalWalk.ts:10

readonly after?: ReadonlyArray<Step<State, NoInfer<Name>, string>>

The steps of the scenario that must have run before this one (an answer after its send).

Step.run

property · packages/metakit/src/temporalWalk.ts:11

readonly run: (state: State) => State