Commit 46c607b
committed
fix(sql-orm-client): replace bare as casts in resolveThrough with castAs
The 5 bare `as` casts in `resolveThrough` (parentColumns/childColumns in
the Set spread, and all three *Columns in the return object) were
declarative widenings from `unknown[]` to `readonly string[]`. Replace
all five with `castAs<readonly string[]>(…)` from `@prisma-next/utils/casts`
per the no-bare-casts rule.
No behaviour change. lint:casts delta: -1.
Signed-off-by: Alexey Orlenko's AI Agent <robot@aqrln.net>1 parent 6f1e1b6 commit 46c607b
1 file changed
Lines changed: 6 additions & 5 deletions
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
274 | | - | |
275 | | - | |
| 275 | + | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| |||
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
289 | | - | |
290 | | - | |
291 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| |||
0 commit comments