Skip to content

Commit

Permalink
Changes from devexperts#20 integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte Legenhausen committed Oct 29, 2018
1 parent 62f46e5 commit db34964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function createRemoteDataFromJSON<
a =>
a.foldL<JSONRemoteData<OL, OR>>(
() => ({ type: 'Initial' }),
() => ({ type: 'Pending', progress: JSONProgress.encode((a as any).progress) }),
progress => ({ type: 'Pending', progress: JSONProgress.encode(progress) }),
l => ({ type: 'Failure', error: leftType.encode(l) }),
a => ({ type: 'Success', value: rightType.encode(a) }),
),
Expand Down

0 comments on commit db34964

Please sign in to comment.