-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add Typescript support #152
Comments
If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.@tobiasbueschel Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
Hi @tobiasbueschel , could you try setting |
While the specific issue can be solved by adding "/lib/" in the path, like this: @googlemaps/extended-component-library/lib/react, it is still very frustrating that there are a lot of issues when creating a .tsx file, based on the samples. Simply copying class App into a .tsx file has many issues. Very frustrating that this library is not plug and play. |
the
and types.d.ts
which is a horrible work-around, but it let's us keep moving for now. |
Adding it to the paths in the main tsconfig.json for your project would solve the issue too:
|
Is your feature request related to a problem? Please describe.
I've integrated
@googlemaps/extended-component-library
into a React application and noticed that Typescript is not yet supported.I've also installed
@types/google.maps
, but it doesn't contain type annotations for these extended components.Describe the solution you'd like
It would be great to include the types in this library or e.g.,
@types/google.maps
.The text was updated successfully, but these errors were encountered: