Skip to content
Discussion options

You must be logged in to vote

Hi @ts-web, it's not possible to use the extends keyword with DayPickerProps because it's a Discriminated Union, that is why the TS error happens.
You need to use Intersections to extend the DayPickerProps type the way you want.

E.g.:

type CalendarProps = DayPickerProps & { bla: string };

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by gpbl
Comment options

You must be logged in to vote
1 reply
@rodgobbi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2801 on July 27, 2025 16:51.