-
-
Notifications
You must be signed in to change notification settings - Fork 741
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 typings have no default export #533
Comments
This is definitely broken/undocumented. I see the same problem. |
Currently its possible to use |
#539 has a longer discussion which I'd like to link here. |
I'd just plan a major release with the right export. I'd like also to remove the common.js default exports which are the root of all the problems 😄 |
c221e2d should fix the issues |
Holla,
before it was possible to import react-day-picker in typescript using the following construct:
import DayPicker from 'react-day-picker';
In version 6.2.1 the tsc compiler complains that 'react-day-picker' has no default export.
but if a change:
to
the import is working again.
Im using 6.2.1 with the integrated typings.
whats the correct way to import in typescript ?
regards
Tristan
The text was updated successfully, but these errors were encountered: