Skip to content

Commit

Permalink
Update the definition of Handler to utilize App.Default
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed May 20, 2024
1 parent 674b132 commit 95d9239
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-falcons-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/platform": patch
---

Update the definition of `Handler` to utilize `App.Default`
7 changes: 1 addition & 6 deletions packages/platform/src/Http/Router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import type * as App from "./App.js"
import type * as Method from "./Method.js"
import type * as Error from "./ServerError.js"
import type * as ServerRequest from "./ServerRequest.js"
import type * as ServerResponse from "./ServerResponse.js"

/**
* @since 1.0.0
Expand Down Expand Up @@ -99,11 +98,7 @@ export declare namespace Route {
/**
* @since 1.0.0
*/
export type Handler<E, R> = Effect.Effect<
ServerResponse.ServerResponse,
E,
R | RouteContext | ServerRequest.ServerRequest | ServerRequest.ParsedSearchParams
>
export type Handler<E, R> = App.Default<E, R | RouteContext | ServerRequest.ParsedSearchParams>
}

/**
Expand Down

0 comments on commit 95d9239

Please sign in to comment.