Skip to content
Français

WorkflowCheckpointValue

import type { WorkflowCheckpointValue } from "@elie-laloum/outpost";

The fields below cover all variants; the signature specifies their allowed combinations.

  • kindRequired
    "undefined" | "json"
    undefined when the task returned undefined, json otherwise.
  • valueVariant-dependent
    WorkflowJson
    Task output as lossless JSON: plain objects, dense arrays, strings, booleans, null and finite numbers other than -0, with no cycles.
export type WorkflowCheckpointValue =
  | {
      readonly kind: "undefined";
    }
  | {
      readonly kind: "json";
      readonly value: WorkflowJson;
    };