Type Alias Timestamp

Timestamp: string & { "[timestamp]": true }

When an event was emitted: an instant in UTC, written in ISO 8601 to the millisecond, as Date.prototype.toISOString writes it, such as "2026-10-19T12:24:42.000Z". new Date(timestamp) reads it back.

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}`;
}

Type Declaration

  • Readonly[timestamp]: true

    Marks the string as a timestamp made by itinera.