Skip to content

Commit

Permalink
Only solution I can think of is to have all fiters adhere to the same…
Browse files Browse the repository at this point in the history
… HttpHandler signature
  • Loading branch information
BBB committed Nov 30, 2023
1 parent 5f1d8c6 commit 6fa6a87
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/http-client/test/FilterResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ const alwaysStatusAndReflectRequest =
);

it("can build a filter chain", async () => {
/**
* We have to specify all 4 generics for each Filter for the composition to work
* which kind of ruins the point, as we want it to be inferred
*/
type ResultHttpHandler = (
request: ImmutableRequest,
) => Promise<Result<ImmutableResponse, Error>>;
Expand Down

0 comments on commit 6fa6a87

Please sign in to comment.