mirror of https://github.com/sveltejs/svelte
fix: support function invocation from imported `*.svelte` components (#12061)
When the TypeScript plugin we provide isn't enabled, imports to `.svelte`-files fall back to an ambient module declaration. Said declaration was still only providing the deprecated class. This PR widens the type so that you can also invoke it like a function. After the transition period (Svelte 6 or 7) only the new type should be provided from the module declaration.pull/12054/head
parent
6588d85364
commit
a94b83b7d4
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: support function invocation from imported `*.svelte` components
|
Loading…
Reference in new issue