Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
fix: loosen decoder compose types
Browse files Browse the repository at this point in the history
  • Loading branch information
baetheus committed Oct 15, 2020
1 parent 4c2c52e commit 5a2839f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export const lazy = <I, A>(
});
};

export const compose = <I, A extends I, B extends A>(
export const compose = <I, A, B>(
ia: Decoder<I, A>,
ab: Decoder<A, B>,
): Decoder<I, B> => ({
Expand Down

0 comments on commit 5a2839f

Please sign in to comment.