Steps: the work of a workflow, what a step is called, its attempts, its outcomes, and the reasons it gives.
import assert from "node:assert/strict";import { type Outcome, Step, step } from "itinera/step";@step()class Ship extends Step { override run(): Outcome { return this.succeed(); }}assert.deepEqual(new Ship().run(), { kind: "success" }); Copy
import assert from "node:assert/strict";import { type Outcome, Step, step } from "itinera/step";@step()class Ship extends Step { override run(): Outcome { return this.succeed(); }}assert.deepEqual(new Ship().run(), { kind: "success" });
Steps: the work of a workflow, what a step is called, its attempts, its outcomes, and the reasons it gives.