Commit dc66616
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 3c2bdb6 commit dc66616
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 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | | - | |
276 | | - | |
| 276 | + | |
| 277 | + | |
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| |||
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
290 | | - | |
291 | | - | |
292 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
| |||
0 commit comments