Open perryd01 opened 6 days ago
idk... If I understand correctly, the changes made to the Svelte components are in the "compiler." This means that the current lucide-svelte
components are still compatible with svelte 5 and the real issue is with the types.
In my very amateur opinion, I think a better option would instead be to make the new Component
type in the svelte
repo backward-compatible with the ComponentType
type (i.e. type Component = { /* type stuff */ } | ComponentType
). This makes sure that the lib still is compatible with Svelte 3/4 while getting to use the type Component
for everything.
But yeah I might be objectively wrong with this. I don't know how this stuff works really.
EDIT: nvm, @sveltejs/package
already figured that stuff out. I think we'll lose Svelte 3 support though. Also, it seems like the components arent compatible with the Component<IconProps>
type.
Package
Version
0.454.0
Can you reproduce this in the latest version?
Browser
Operating system
Description
types are not completely compatible with Svelte 5
Steps to reproduce
ComponentType<Icon>
is no longer supportedChecklist