A hook returned without failing: a hook of a step policy, with the lifecycle it returned, or a hook of a workflow policy, which returns none.
import type { Event } from "itinera/event";export function summary(event: Event): string { if (event.kind === "step_failed") { return `${event.step} failed: ${event.reason.code}`; } if (event.kind === "journey_aborted") { return `aborted: ${event.abort.reason}`; } return `${event.kind} at ${event.timestamp}`;} Copy
import type { Event } from "itinera/event";export function summary(event: Event): string { if (event.kind === "step_failed") { return `${event.step} failed: ${event.reason.code}`; } if (event.kind === "journey_aborted") { return `aborted: ${event.abort.reason}`; } return `${event.kind} at ${event.timestamp}`;}
A hook returned without failing: a hook of a step policy, with the lifecycle it returned, or a hook of a workflow policy, which returns none.