You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug OpUnitType contain some 'illegal' unit for add and subtract. According to doc.
I was misled by OpUnitType, thought date can be applied to subtract, but result was unexpected. Value wasn't changed. Took me sometime to figure it out.
Expected behavior
Correct TS params type for add and subtract unit.
Information
Day.js latest
OS: Mac0S
Browser latest Chrome
The text was updated successfully, but these errors were encountered:
Describe the bug
OpUnitType
contain some 'illegal' unit foradd
andsubtract
. According to doc.I was misled by
OpUnitType
, thoughtdate
can be applied tosubtract
, but result was unexpected. Value wasn't changed. Took me sometime to figure it out.Expected behavior
Correct TS params type for
add
andsubtract
unit.Information
The text was updated successfully, but these errors were encountered: