From 9629e6a4aed10a9ceae1319df2bd2392f0ad38b1 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 8 Aug 2026 13:55:38 +0000 Subject: [PATCH] test(driver-turso): drop the dead `as never` on date-bucket-parity's create options gate (#6394) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `date-bucket-parity.test.ts` passed `{ bypassTenantAudit: true } as never` to `driver.create`. `bypassTenantAudit` is a declared key on `DriverOptionsSchema` (packages/spec/src/data/driver.zod.ts), so the cast was never needed: `@objectstack/driver-turso` typechecks clean without it (verified after building the package's full dependency closure, so the verdict is not read off stale `dist/*.d.ts`). This is the last `as never` in the file — #6354 removed the ones on the `checkDateBucketParity(...)` stand-in call sites; this one sat on a different gate (`driver.create`'s options parameter) and was recorded separately under PD #10 rather than widening that PR's diff. Scope note: removing the cast does NOT restore compile-time checking at this call site. `TursoDriver` overrides `create` (and eight sibling methods) with `options?: any`, so a misspelled key or a wrong-typed value still compiles either way — measured, not assumed. Filed separately; this commit only removes noise that reads as a needed escape hatch. Tests-only change, no changeset. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_015g3eCfHF7Wrtyq2qRahmP8 --- packages/drivers/driver-turso/src/date-bucket-parity.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/drivers/driver-turso/src/date-bucket-parity.test.ts b/packages/drivers/driver-turso/src/date-bucket-parity.test.ts index 59ac080d29..ea25b4a325 100644 --- a/packages/drivers/driver-turso/src/date-bucket-parity.test.ts +++ b/packages/drivers/driver-turso/src/date-bucket-parity.test.ts @@ -65,7 +65,7 @@ describe('TursoDriver date-bucket parity (framework#3773)', () => { await driver.create( 'bucket_storage_probe', { id: 'p1', at: new Date('2026-01-10T09:00:00Z') }, - { bypassTenantAudit: true } as never, + { bypassTenantAudit: true }, ); const res: any = await driver.execute( `SELECT typeof("at") AS t FROM "bucket_storage_probe" WHERE id = 'p1'`,