Rationale
I would expect to be able to get the difference between two dates using "week" (or its variants) as unit.
Typescript doesn't let me compile the code because the expected type for the unit parameter is of QUnitType which doesn't hold "week" as a possible value. Also, from the source code we can actually pass one of the "week" variants although the types are not expecting it.
Expected behavior
I would expect to have diff(date: ConfigType, unit: QUnitType | OpUnitType, float?: boolean): number (or similar) instead of diff(date: ConfigType, unit: QUnitType, float?: boolean): number
Information
will fix in next release
@issuehunt has funded $20.00 to this issue.
@iamkun has rewarded $18.00 to @iamkun. See it on IssueHunt
:tada: This issue has been resolved in version 1.8.13 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Most helpful comment
will fix in next release