Skip to content

Commit

Permalink
compatible-with-es
Browse files Browse the repository at this point in the history
  • Loading branch information
uriva committed Jan 7, 2025
1 parent 1bed975 commit 0c1c20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composition.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const _1 = <T, Fn extends (x: T) => number>(f: Fn) => {
const _2: number = pipe(<T extends number>(x: T) => x, (y: number) => y)(1);

// Generics extends Promise is considered async.
const _3: number = await pipe(
const _3: Promise<number> = pipe(
<T extends number>(x: T) => Promise.resolve(x),
(y: number) => y,
)(1);
Expand Down

0 comments on commit 0c1c20e

Please sign in to comment.