mirror of https://github.com/sveltejs/svelte
fix: widen `ComponentProps` constraint to accept more component shapes (#12666)
language tools has to type its own shape for backwards compatibility, and it currently doesn't include the `$on` and `$set` methods, which means without widening the type as done here you would get a "this shape is not accepted" type error when passing it to `ComponentProps` closes #12627pull/12667/head
parent
ee1a3df835
commit
00e8ebde1d
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: widen `ComponentProps` constraint to accept more component shapes
|
Loading…
Reference in new issue