A step is a value object around a function that takes context as first argument.

Type Parameters

  • C

  • D

Hierarchy

  • Timed<D, Error>
    • Step

Constructors

  • Type Parameters

    • C

    • D

    Parameters

    Returns Step<C, D>

Properties

description?: string
ended?: number | false = false
failed?: Error
impl: StepFn<C, D>
log: Core.Console = ...
name: string = impl.name
result?: D
started?: number | false = false

Accessors

  • get took(): string
  • Returns string

Methods

    • Always async.
    • Bind "this" in impl.

    Parameters

    • context: C
    • Rest ...args: any[]

    Returns Promise<D>

    updated copy of context.

  • Returns number

  • Parameters

    • failed: Error

    Returns number

  • Returns number

  • Parameters

    • result: D

    Returns number

  • Type Parameters

    • C

    • D

    Parameters

    • specifier: unknown

    Returns Step<C, D>

Generated using TypeDoc