From b8450dfa84b8c0da371a59491b6c8de64934603a Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Sat, 12 Sep 2026 19:30:13 +0000 Subject: [PATCH] Type the settled bridge stat as fs.Stats so tsc does not see bigint. Awaited> collapsed the bigint overload and broke prepare/typecheck on CI. --- gitnexus/src/core/group/bridge-db.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gitnexus/src/core/group/bridge-db.ts b/gitnexus/src/core/group/bridge-db.ts index 444775c25..8943939fe 100644 --- a/gitnexus/src/core/group/bridge-db.ts +++ b/gitnexus/src/core/group/bridge-db.ts @@ -1,3 +1,4 @@ +import type { Stats } from 'node:fs'; import fsp from 'node:fs/promises'; import path from 'node:path'; import { createHash } from 'node:crypto'; @@ -724,9 +725,7 @@ const stampMatchesStat = ( * the atomic rename. Stamping the first `stat` then loses the exact-equality * check the moment that flush lands. Wait until two consecutive stats agree. */ -const statSettledBridgeFile = async ( - filePath: string, -): Promise>> => { +const statSettledBridgeFile = async (filePath: string): Promise => { let current = await fsp.stat(filePath); for (let i = 0; i < 10; i++) { await new Promise((resolve) => setImmediate(resolve));