Skip to content

@usine/core/step

A named unit of work inside a run, exactly one per run in v1. The result is stored when an attempt succeeds and is none until then.

  • Schema.Class

new Step(…args): Step

Parameter Type
…args [props: object, options?: MakeOptions]

Step

readonly name: string & Brand<"StepName">

readonly result: Option<StepResult>

readonly runId: string & Brand<"RunId">

StepName = typeof StepName.Type

The loop-authored step name. Renaming a step in the loop file retires it and its stored results stay under the old name (ADR 0002).

const StepName: Schema.brand<Schema.NonEmptyString, "StepName">

The loop-authored step name. Renaming a step in the loop file retires it and its stored results stay under the old name (ADR 0002).