Closed aradalvand closed 1 year ago
One unrelated thing by the way: The TypeScript section in the README currently states that you should copy-and-paste those TypeScript declarations into a svg.d.ts
file in your project; but since sveltekit-svg
already comes with the svg.d.ts
file included, can't users instead simply import it in their app.d.ts
or whatever? Like so:
import '@poppanator/sveltekit-svg/dist/svg';
This seems to work just as well. So, should I update the README to reflect this?
One unrelated thing by the way: The TypeScript section in the README currently states that you should copy-and-paste those TypeScript declarations into a
svg.d.ts
file in your project; but sincesveltekit-svg
already comes with thesvg.d.ts
file included, can't users instead simply import it in theirapp.d.ts
or whatever? Like so:import '@poppanator/sveltekit-svg/dist/svg';
This seems to work just as well. So, should I update the README to reflect this?
That's a good point. Feel free to update the README :)
@poppa Done :)
@poppa Thanks! When will this be released if I may ask?
Closes #39
I also replaced
SvelteComponentTyped
withSvelteComponent
insvg.d.ts
sinceSvelteComponentTyped
is deprecated in Svelte 4 — see this.