Skip to main content

Function: parseOpsObjectFileNameMetadata()

function parseOpsObjectFileNameMetadata(fileName: string): Readonly<{
createdAt: number;
firstOpId: number;
lastOpId: number;
}> | null;

Defined in: electron/services/sync/syncEngineKeyUtils.ts:34

Parses and validates an operation object filename.

Parameters

fileName

string

Provider object filename segment.

Returns

| Readonly<{ createdAt: number; firstOpId: number; lastOpId: number; }> | null

Remarks

This helper is intentionally strict and used by both the sync engine and the provider transport to avoid drift in what keys are considered valid.