Interface SnapshotCall

Description

A single recorded call entry within a snapshot file.

interface SnapshotCall {
    args: SerializedValue[];
    error?: SerializedValue;
    refs?: unknown;
    result: SerializedValue;
}

Properties

Properties

Description

Serialized call arguments (used for callback replay).

Description

Serialized error, if the call threw.

refs?: unknown

Description

Per-instance refId markup, parallel to result, for statics that return model instances (see STATIC_REPLAY_SHAPE in statics.ts). Shapes mirror the recorded result: single → refId string; array(refId|undefined)[]; pairInstance[refId|undefined, undefined]; pairCount[undefined, (refId|undefined)[]]; wrapper{ rows: (refId|undefined)[] }. null marks a known-shape result that contained NO model instance at record time (e.g. raw: true query rows) — replay returns the recorded data without reconstruction. Optional type kept for legacy in-memory entries; in the v2 JSONL format the field is ALWAYS written (explicit null when unused) and the reader normalizes a missing field to null, while v1 files keep it absent so the legacy reconstruction path still applies.

Description

Serialized return value.