diff --git a/src/composition.test.ts b/src/composition.test.ts index 81eb876..7c0f79b 100644 --- a/src/composition.test.ts +++ b/src/composition.test.ts @@ -91,7 +91,7 @@ const _1 = number>(f: Fn) => { const _2: number = pipe((x: T) => x, (y: number) => y)(1); // Generics extends Promise is considered async. -const _3: number = await pipe( +const _3: Promise = pipe( (x: T) => Promise.resolve(x), (y: number) => y, )(1);