Skip to content

Commit

Permalink
fix: Fix overload of pipe type not being applied in bundled d.ts (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten authored Feb 12, 2023
1 parent 8fe062d commit 879b2ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-donuts-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'wonka': patch
---

Fix overload of `pipe` type not being applied in bundled `d.ts` file.
4 changes: 2 additions & 2 deletions src/pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ interface pipe {
): R;
}

function pipe(...args: Function[]): any {
const pipe: pipe = (...args: Function[]): any => {
let x = args[0];
for (let i = 1, l = args.length; i < l; i++) x = args[i](x);
return x;
}
};

export { pipe };

0 comments on commit 879b2ab

Please sign in to comment.