Changing the keyword from 'days' to 'day' eliminates the Typescript error and works fine as well. This problem has been encountered in ver. 7.2.0
I would also like to take time to thank you for this library, everything else that performs date operations pales in comparison to this library and its intuitiveness and ease of use.
Hello,
It appears there is a missing type definition or perhaps a simple mismatch with what is written in the documentation:
The official spacetime documentation here on Github demonstrates that it is possible to calculate the difference between 2 dates in such a manner:
s.diff(s.endOf('year'), 'days')
However, attempting to follow the provided instructions makes Typescript raise the following issue:
The code runs fine nonetheless, leading me to believe that perhaps this function parameter type was omitted by accident:
Changing the keyword from 'days' to 'day' eliminates the Typescript error and works fine as well. This problem has been encountered in ver. 7.2.0
I would also like to take time to thank you for this library, everything else that performs date operations pales in comparison to this library and its intuitiveness and ease of use.
Thank you