Skip to content

Commit

Permalink
add HttpServerRequest to HttpApp.Default (#3384)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Jul 30, 2024
1 parent 8ea4f44 commit 11223bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wild-days-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/platform": patch
---

add HttpServerRequest to HttpApp.Default
6 changes: 5 additions & 1 deletion packages/platform/src/HttpApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export interface HttpApp<A = ServerResponse.HttpServerResponse, E = never, R = n
* @since 1.0.0
* @category models
*/
export type Default<E = never, R = never> = HttpApp<ServerResponse.HttpServerResponse, E, R>
export type Default<E = never, R = never> = HttpApp<
ServerResponse.HttpServerResponse,
E,
R | ServerRequest.HttpServerRequest
>

/**
* @since 1.0.0
Expand Down

0 comments on commit 11223bf

Please sign in to comment.