Skip to content
Français

ReadArtifactOptions

import type { ReadArtifactOptions } from "@elie-laloum/outpost";
  • producerOptional
    ArtifactProducer | undefined
    Expected execution, task key and attempt; any difference rejects with Artifact producer mismatch.
  • parentsOptional
    readonly ArtifactReference[] | undefined
    Expected parent references, in order; a different list rejects with Artifact lineage mismatch.
  • signalOptional
    AbortSignal | undefined
    Aborting it rejects the read with the signal’s reason.
export interface ReadArtifactOptions {
  readonly producer?: ArtifactProducer;
  readonly parents?: readonly ArtifactReference[];
  readonly signal?: AbortSignal;
}