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
Thanks @gcanti
Yeah, this is because JSONRemoteData refers to RemoteProgress which uses Option in total field. Looks like this result in an error with latest io-ts-types. I'll fix it and release a minor with updated versions of all related libs.
I think I found a bug while trying to upgrade this library to fp-ts@2
Here
JSONProgress.encode
outputs a{ loaded: number; total: number | null; } | null
but should be aRemoteProgress | null
andRemoteProgress
is defined asRepro
io-ts-types@latest
src/remote-data-io.ts
in VSCode or try to compile the project, shouldn't type checkThe text was updated successfully, but these errors were encountered: