Skip to content
Français

ReplayDivergencePolicy

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

divergence option of createReplayAgent(). Values: “fail” (default; throw ReplayDivergence with code replay), “warn” (report the divergence through the dispatch warn callback and continue). Exhausted journals and patches that fail to apply always fail.

Complete example and detailed rules.

export type ReplayDivergencePolicy = "fail" | "warn";