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
DateFromUnixTime.encode returns a floating point number which its decoder refuses to accept.
Expected behavior
DateFromUnixTime.encode returns an integer so that decode(encode(x)) = x.
Reproducible example
constres=tt.DateFromUnixTime.encode(newDate());console.log(res);// shows floating point numberconsole.log(tt.DateFromUnixTime.decode(res));// returns Left
I just realized I managed to post this in the wrong repository. This is particularly stupid of me because I realized I was about to do this half way through writing the issue, opened up the io-ts-types repository instead, copied the bug report over but somehow still finished it in this tab.
Should I close this and post this there or is there something a maintainer can do that is easier?
🐛 Bug report
Current Behavior
DateFromUnixTime.encode returns a floating point number which its decoder refuses to accept.
Expected behavior
DateFromUnixTime.encode returns an integer so that
decode(encode(x)) = x
.Reproducible example
Your environment
The text was updated successfully, but these errors were encountered: