Skip to content

Commit

Permalink
fix(blitz-rpc): fix 6th pipe resolver not returning resolved value (#…
Browse files Browse the repository at this point in the history
…3537)


Co-authored-by: beerose <[email protected]>
  • Loading branch information
datner and beerose authored Jul 15, 2022
1 parent b364af7 commit df7cee8
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-eyes-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@blitzjs/rpc": patch
---

Fix pipe resolver return type
2 changes: 1 addition & 1 deletion packages/blitz-rpc/src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function pipe<A, B, C, D, E, F, G, CA = Ctx, CB = CA, CC = CB, CD = CC, CE = CD,
de: PipeFn<D, E, CD, CE>,
ef: PipeFn<E, F, CE, CF>,
fg: PipeFn<F, G, CF, CG>,
): (input: A, ctx: CA) => EnsurePromise<CG>
): (input: A, ctx: CA) => EnsurePromise<G>
function pipe<
A,
B,
Expand Down
69 changes: 53 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit df7cee8

Please sign in to comment.