Skip to content
Français

TaskWorkspaceCheckpoint

import type { TaskWorkspaceCheckpoint } from "@elie-laloum/outpost/workflows";
  • readRequired
    (key: string) => WorkflowJson | undefined
    Read the persisted JSON resource description for a logical workspace key.
  • writeRequired
    (key: string, description: WorkflowJson) => Promise<void>
    Persist a settled JSON resource description without allocating or copying files in the domain.
export interface TaskWorkspaceCheckpoint {
  read(key: string): WorkflowJson | undefined;
  write(key: string, description: WorkflowJson): Promise<void>;
}