Skip to content

VerdictRead

VerdictRead<T> = { status: "absent"; } | { repaired: boolean; status: "parsed"; value: T; } | { raw?: string; status: "unparseable"; }

Defined in: src/json-tolerant.ts:49

3-way verdict-read result, generic over the parsed shape (recap: unknown; critic: RawVerdict). Distinguishes a not-yet-written file (absent) from a present-but-unrecoverable one (unparseable) so the finalize loop can fail fast on the latter without waiting out the timeout, while still retrying a genuine partial write. repaired is carried through so a repaired parse can be gated on spawn-completion (see module docstring).

T