-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
export CalendarProps interface to allow for props typing in extending components #856
Comments
You don't need that :)
|
@wojtekmaj when I do this I receive: "Type 'Calendar' does not satisfy the constraint 'keyof IntrinsicElements | JSXElementConstructor '." import React from "react";
import { Calendar } from "react-calendar";
import "./Calendar.css";
//export interface CalendarProps extends ReactCalendarProps {}
type CalendarProps = React.ComponentProps<Calendar>; react v18 |
I'd need to see full example to help out. What I proposed is what I exactly do in React-Date-Picker for example and it works great. Nonetheless, exporting it makes sense. This is in the works. |
Before you start - checklist
Description
i want to be able to import CalendarProps types to help with typing wrapper compontns
Proposed solution
No response
Alternatives
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: