Skip to content

Conversation

@ali-bichanga
Copy link

the current code in the basic calendar with default settings (line 106 of README) gives this error:

Type '{ [x: string]: { selected: true; disableTouchEvent: true; selectedDotColor: string; }; }' is not assignable to type 'MarkedDates'.
'string' index signatures are incompatible.
Object literal may only specify known properties, but 'selectedDotColor' does not exist in type 'MarkingProps'. Did you mean to write 'selectedColor'?ts(2322)
index.d.ts(22, 5): The expected type comes from property 'markedDates' which is declared here on type 'IntrinsicAttributes & CalendarProps & ContextProp'

The fix makes it work as intended, highlighting the selected date in orange.

the current code in the basic calendar with default settings (line 106 of README) gives this error:

Type '{ [x: string]: { selected: true; disableTouchEvent: true; selectedDotColor: string; }; }' is not assignable to type 'MarkedDates'.
  'string' index signatures are incompatible.
    Object literal may only specify known properties, but 'selectedDotColor' does not exist in type 'MarkingProps'. Did you mean to write 'selectedColor'?ts(2322)
index.d.ts(22, 5): The expected type comes from property 'markedDates' which is declared here on type 'IntrinsicAttributes & CalendarProps & ContextProp'


The fix makes it work as intended, highlighting the selected date in orange.
@stale
Copy link

stale bot commented Dec 11, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant