tailwindlabs / heroicons

A set of free MIT-licensed high-quality SVG icons for UI development.
https://heroicons.com
MIT License
21.45k stars 1.28k forks source link

Fix vue TypeScript declarations. #608

Closed TiBianMod closed 2 years ago

TiBianMod commented 2 years ago

This pull request fixes #607 and improves autocompletion for JSX/TSX components.

CleanShot 2022-02-20 at 01 36 27

CleanShot 2022-02-20 at 01 36 52

Everything is working as expected in Vue Single File Component

CleanShot 2022-02-20 at 04 04 15

CleanShot 2022-02-20 at 04 09 44

RobinMalfait commented 2 years ago

Hey! Thank you for your PR! Much appreciated! 🙏

I thought that DefineComponent would work as well. One day we can probably refactor to DefineComponent but this is great already, thanks!