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

Fix navigation label typings #118

Merged
merged 1 commit into from
Sep 13, 2018
Merged

Fix navigation label typings #118

merged 1 commit into from
Sep 13, 2018

Conversation

ValeriiVasin
Copy link
Contributor

@ValeriiVasin ValeriiVasin commented Sep 11, 2018

This PR is a fix for the TypeScript definitions issue.

Version of react-calendar we have: 2.17.2

image

Our tsconfig.json contains strict: true and noImplicitAny: true

We got a problem while compiling in strict mode saying that String is typed as any. But actually that seem to be wrong syntax (in JS that syntax used for object destructuring). Here is some short explanation i found online

You could compare what was before and after here

seems like it was caused by #107

@wojtekmaj wojtekmaj merged commit 1c1249e into wojtekmaj:master Sep 13, 2018
@wojtekmaj
Copy link
Owner

Thank you! I appreciate your input :)

@ValeriiVasin ValeriiVasin deleted the vvasin-fix-typings branch September 14, 2018 10:06
@ValeriiVasin
Copy link
Contributor Author

ValeriiVasin commented Sep 25, 2018

@wojtekmaj are you going to release version that includes correct typings soon? supporting current one needs extra hacks on our side (removing typings from the package on postinstall and adding our own definitions instead.

Thanks.

@wojtekmaj
Copy link
Owner

Hey,
the update will be out this week. Sorry to keep you waiting!

@wojtekmaj
Copy link
Owner

2.17.4 is out!

@ValeriiVasin
Copy link
Contributor Author

@wojtekmaj thx, updated and it worked out!

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

Successfully merging this pull request may close these issues.

2 participants