Commit effd66f
committed
test(metadata): keep the new pin out of the package's frozen type-check debt (#6548)
Measured: as first written the five cases added 3 raw tsc errors to
@objectstack/metadata's DEBT ledger entry (1 TS2835 from an extensionless
`./loaders/loader-interface` import, 2 TS7006 from the un-annotated watcher
callbacks the unresolved `./metadata-manager` import cascades into).
Spelling the new import with `.js` and annotating the two callbacks with
MetadataWatchEvent puts the file back on its origin/main composition exactly —
2 TS2835 + 14 TS7006, unchanged — so the pin adds zero debt. The `.js` also
makes `implements MetadataLoader` on the fixture a real check rather than a
comment over an `any`. The two pre-existing extensionless imports are #4311's
ledger and are left alone.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KDU3qAuJyajAQm3GkUXdfA1 parent 26d4348 commit effd66f
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| |||
557 | 564 | | |
558 | 565 | | |
559 | 566 | | |
560 | | - | |
| 567 | + | |
561 | 568 | | |
562 | 569 | | |
563 | 570 | | |
| |||
586 | 593 | | |
587 | 594 | | |
588 | 595 | | |
589 | | - | |
| 596 | + | |
590 | 597 | | |
591 | 598 | | |
592 | 599 | | |
| |||
0 commit comments