natemoo-re / astro-icon

Inline and sprite-based SVGs in Astro made easy!
https://astroicon.dev
Other
992 stars 57 forks source link

Astro Icon is not giving me any type hints in VS Code. #150

Closed louiss0 closed 6 months ago

louiss0 commented 8 months ago

I was using the Icon component from astro-icon when I noticed I there were no type hints.

I looked into it and found this

---
export { type Props } from './Props';
---

Instead of

---
import { type Props as $Props } from './Props';

type Props = $Props

---

I'm getting no type hints.

Astro Icon doesn't work with stack blitz It's best for you to download it and try it.

https://stackblitz.com/edit/withastro-astro-bkl9et?file=src%2Fpages%2Findex.astro

louiss0 commented 6 months ago

You could have put a repro label OMG I'll just make a new repro then