Commit 559206b
`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.
Claude-Session: https://claude.ai/code/session_015g3eCfHF7Wrtyq2qRahmP8
Co-authored-by: Claude <noreply@anthropic.com>
1 parent fa2d3b7 commit 559206b
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments