Skip to content
Français

WorkflowJson

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

JSON value that round-trips without loss: null, boolean, finite number other than -0, string, array or plain object of these. Used for task cache keys, queue job inputs and results, trigger payloads and interactive task state; checkpoint outputs must have this form or be undefined.

Complete example and detailed rules.

export type WorkflowJson =
  | null
  | boolean
  | number
  | string
  | readonly WorkflowJson[]
  | {
      readonly [key: string]: WorkflowJson;
    };