-
-
Notifications
You must be signed in to change notification settings - Fork 514
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 types aren't all exposed from the library #866
Labels
enhancement
New feature or request
Comments
You can always use Released in 4.3.0. |
wojtekmaj
added
enhancement
New feature or request
and removed
bug
Something isn't working
labels
Jun 13, 2023
Thanks for this, but it only exposes |
Right. We could do that for you :D |
This was referenced May 19, 2024
This was referenced May 26, 2024
This was referenced Sep 25, 2024
This was referenced Oct 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before you start - checklist
Description
When I was using
@types/react-calendar
all of the types were exposed, which allowed me to to create memo-ized callback functions to handle events coming from the calendar (viauseCallback()
).For example, I could do something like this:
Steps to reproduce
Any attempt to use types outside of the
<Calendar/>
component itself.Expected behavior
I'd like to see all of the types exposed from the library as types that can be leveraged in the calling application.
Actual behavior
Everything works fine if writing the functions within the context of the component itself; e.g.
Additional information
The types are all defined in the library but they're not exposed from the package, so I have to import them from
react-calendar/dist/cjs/shared/types
which feels like a hack to me.Environment
The text was updated successfully, but these errors were encountered: