rulvar API reference / @rulvar/core / decodeCheckpoint
Function: decodeCheckpoint()
ts
function decodeCheckpoint(blob):
| CheckpointState
| undefined;Defined in: packages/core/src/journal/checkpoint.ts:97
Decodes a checkpoint blob. Returns undefined for an empty blob or an unknown format byte: a resume never trusts a checkpoint it cannot parse; the dangling dispatch reruns from the top instead (at-least-once is the documented floor).
Parameters
| Parameter | Type |
|---|---|
blob | Uint8Array |
Returns
| CheckpointState | undefined