Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript Props tips? #62

Closed
J-env opened this issue Oct 13, 2022 · 3 comments
Closed

typescript Props tips? #62

J-env opened this issue Oct 13, 2022 · 3 comments
Labels
question Further information is requested

Comments

@J-env
Copy link

J-env commented Oct 13, 2022

Component has no props tips

@stramel
Copy link
Collaborator

stramel commented Oct 20, 2022

@J-env Can you provide more information? I'm able to see the Prop tips in VSCode when using this package.

@stramel stramel added the question Further information is requested label Oct 20, 2022
@stramel
Copy link
Collaborator

stramel commented Nov 11, 2022

I'm going to close this for now. I'm willing to re-open if more details are provided and proves to be an issue with the library.

@stramel stramel closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2022
@benjavicente
Copy link

benjavicente commented Dec 11, 2022

Hi and thanks for the awesome library!

I have the same problem in version 0.8.0: The Icon component gives me the following type:

function Icon(_props: Record<string, any>): any

Initializing an empty project and using the Icon component like

<Icon thisShouldGiveAnError="here" />

doesn't give an error while type checking with astro check.

Installing the library with pnpm or npm made no diference.

Edit: this might be an Astro issue 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants