Commit 63f3d5f
committed
test(runtime): type the findOne options bag instead of casting it (#7537)
check:query-options-erasure counted the `as any` on the new findOne case as a
new untyped-options site (test surface 249 → 250). The input is on-contract —
`where` + `expand` are both `EngineQueryOptions` members — so the cast was
noise, not a deliberate contract bypass. Removing it satisfies the ratchet the
way the check asks for (type the options) rather than by spending the
`as unknown as EngineQueryOptions` escape hatch, which is reserved for tests
that must build genuinely off-contract input.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HJVZqLviCkZMJV8Nh3DUao1 parent 532bb01 commit 63f3d5f
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 | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments