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

How to use type Props? #97

Open
usmanghani-em opened this issue Apr 26, 2023 · 0 comments
Open

How to use type Props? #97

usmanghani-em opened this issue Apr 26, 2023 · 0 comments

Comments

@usmanghani-em
Copy link

The type Props has not been exported.
I tried to use Tooltip.propTypes as well, but I get this Typescript error:

'Tooltip' only refers to a type, but is being used as a namespace here.

then I tried to use typeof Tooltip.propTypes, but got another Typescript error:

Property 'propTypes' does not exist on type 'typeof Tooltip'.ts(2339)

I there a proper way to use the type? If not then please export the type.
Thanks

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

No branches or pull requests

1 participant