Commit 00212c4
authored
fix: always set bindings/exports in Svelte 5 (#2423)
Those two methods are needed in Svelte 5, but we don't always set them. That was fine until TS 5.5, which infers generics slightly differently and turns `Exports` and `Bindings` to `never` if they don't show up in the input (before they were not)1 parent 573d59c commit 00212c4
File tree
52 files changed
+76
-65
lines changed- packages/svelte2tsx
- src/svelte2tsx/nodes
- test
- svelte2tsx/samples
- accessors-config
- component-slot-forward-with-props
- component-slot-let-forward
- component-slot-nest-scope
- component-slot-no-space
- component-with-documentation
- component-with-indented-multiline-documentation
- component-with-multiline-documentation
- const-tag-component
- creates-dts
- creates-no-script-dts
- export-class
- export-const-array-destructuring
- export-const-object-destructuring
- export-list
- generic-attribute-const-modifier
- runes-best-effort-types.v5
- runes-bindable.v5
- runes-looking-like-stores.v5
- runes-with-slots.v5
- runes.v5
- script-style-like-component
- sveltekit-autotypes
- transforms-interfaces-dts
- ts-$$Props-interface
- ts-$$Props-type
- ts-$$Props-with-$$props
- ts-$$generics-accessor-dts
- ts-$$generics-accessor
- ts-$$generics-dts
- ts-$$generics-interface-references
- ts-$$generics
- ts-creates-dts
- ts-export-const
- ts-export-list
- ts-generics-attribute1
- ts-generics-attribute2
- ts-runes-best-effort-types.v5
- ts-runes-bindable.v5
- ts-runes-generics.v5
- ts-runes-with-slot.v5
- ts-runes.v5
- ts-script-tag-generics
- uses-accessors-attr-not-present
- uses-accessors-attr-present
- uses-accessors-mustachetag-false
- uses-accessors-mustachetag-true
- uses-accessors-no-svelte-options
- uses-svelte-components-let-forward
- uses-svelte-components
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
52 files changed
+76
-65
lines changedLines changed: 21 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
712 | | - | |
| 712 | + | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
725 | 729 | | |
726 | | - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
727 | 733 | | |
728 | | - | |
729 | 734 | | |
730 | | - | |
731 | 735 | | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
732 | 739 | | |
733 | 740 | | |
734 | 741 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
334 | 338 | | |
335 | 339 | | |
336 | 340 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments