nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.32k stars 841 forks source link

Type errors as of 3.1.1 - impossible to have null values in a date range #1394

Open callumacrae opened 8 months ago

callumacrae commented 8 months ago

Thanks for your work on this library! It's super useful :)

https://github.com/nathanreyes/v-calendar/commit/76a5f2623cd81d297fe37a52821ce3a9cd90a214#diff-cb9a5caf2439151736e2bf38f6e5cccd7de4d8fdd89db4e117f0202b7d3cbc00R73-R76

This change has caused a type error in our codebase, as we're using date ranges with null values as initial values until the user has specified a range.

This is the functionality we want - is there any other way to achieve this or is this an error in the types?