From 87107d7cba1f4a16e953156a96e528be49e0c4ea Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 6 Dec 2026 18:09:21 +0100 Subject: [PATCH] fix(atlas): keep the cached regions projection typed as unknown The offline snapshot may contain any legacy value. Explicitly retain its unknown type throughout the queue projection to pass the strict client type check. --- client/src/sync/atlasSnapshot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/sync/atlasSnapshot.ts b/client/src/sync/atlasSnapshot.ts index e7f4a0777..904c379c2 100644 --- a/client/src/sync/atlasSnapshot.ts +++ b/client/src/sync/atlasSnapshot.ts @@ -277,7 +277,7 @@ export async function withWaitingWrites(part: AtlasSnapshotPart, data: unknown): if (part !== 'stats' || !writes.some((w) => w.resource === ATLAS_RESOURCE.region && w.method === 'DELETE')) { return writes.reduce((out, w) => applyAtlasWrite(part, out, w), data); } - let regions = (await keptAtlasPart('regions'))?.data ?? {}; + let regions: unknown = (await keptAtlasPart('regions'))?.data ?? {}; for (const w of writes) { data = applyToStats(data, w, regions); regions = applyToRegions(regions, w);