Commit f9a34b1
docs: Add TypeScript note for Symbol.dispose in Signals models
Users calling model[Symbol.dispose]() directly need ESNext.Disposable
in their tsconfig lib. The library typings themselves no longer require
it (fixed in preactjs/signals#911), but the symbol
still needs to be typed when referenced in app code.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 385daf5 commit f9a34b1
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| 594 | + | |
| 595 | + | |
594 | 596 | | |
595 | 597 | | |
596 | 598 | | |
| |||
808 | 810 | | |
809 | 811 | | |
810 | 812 | | |
| 813 | + | |
| 814 | + | |
811 | 815 | | |
812 | 816 | | |
813 | 817 | | |
| |||
0 commit comments