Migrate generated Svelte icons from SvelteComponentTyped
to SvelteComponent
#1507
Labels
🐛 bug
Something isn't working
SvelteComponentTyped
to SvelteComponent
#1507
Prerequisites
Step to reproduce
Try to copy an existing icon's base type definition:
Note the deprecation from
SvelteComponentTyped
, with the following message:Attempt to use
SvelteComponent
instead:Actual behavior
A TypeScript error is outputted as a result of performing step 3.
Any message or error
Resources
EDIT: I see that this was noted here as well: #1388 (comment)
On an unrelated note, could a TypeScript type that all icons can extend from be added as well? Perhaps something like the following:
The text was updated successfully, but these errors were encountered: