Repository navigation
Commit 05ac9ee
committed
test(spec): cast the root-frame read through unknown, and assert presence
`scripts/import-prerequisite.d.mts` is partial by design and declares only the
two loaders, so tsc sees a namespace without the exit-code constants and
refused the direct cast (TS2352) under `check:scripts-typecheck`. The cast now
goes through `unknown`, and the two `typeof` assertions are what stop a
vanished export from reading as `undefined` on both sides of a comparison.
Claude-Session: https://claude.ai/code/session_01UDXER3sdqfeVYpEWZs5mZx
Co-authored-by: Claude <noreply@anthropic.com>1 parent 408c915 commit 05ac9ee
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
541 | | - | |
542 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
543 | 550 | | |
| 551 | + | |
| 552 | + | |
544 | 553 | | |
545 | 554 | | |
546 | 555 | | |
| |||
0 commit comments