Skip to content

Commit

Permalink
fix routectx
Browse files Browse the repository at this point in the history
  • Loading branch information
patroza committed Oct 8, 2024
1 parent 45d20a8 commit c9a4ad4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-mayflies-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect-app/infra": patch
---

fix version
10 changes: 7 additions & 3 deletions packages/infra/src/api/routing2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ export const makeRouter2 = <Context, CTXMap extends Record<string, ContextMap.An
f: (
req: S.Schema.Type<Rsc[Key]>,
ctx: Compute<
LowerServices<EffectDeps<SVC>> & GetRouteContext<CTXMap, Rsc[Key]> & { Response: Rsc[Key]["success"] },
LowerServices<EffectDeps<SVC>> & GetRouteContext<CTXMap, Rsc[Key]["config"]> & {
Response: Rsc[Key]["success"]
},
"flat"
>
) => Effect<A, E, R2>
Expand Down Expand Up @@ -178,7 +180,7 @@ export const makeRouter2 = <Context, CTXMap extends Record<string, ContextMap.An
<R2, E, A>(
f: (
req: S.Schema.Type<Rsc[Key]>,
ctx: GetRouteContext<CTXMap, Rsc[Key]> & { Response: Rsc[Key]["success"] }
ctx: GetRouteContext<CTXMap, Rsc[Key]["config"]> & { Response: Rsc[Key]["success"] }
) => Effect<A, E, R2>
): HandleVoid<
GetSuccessShape<Rsc[Key], RT>,
Expand Down Expand Up @@ -206,7 +208,9 @@ export const makeRouter2 = <Context, CTXMap extends Record<string, ContextMap.An
f: (
req: S.Schema.Type<Rsc[Key]>,
ctx: Compute<
LowerServices<EffectDeps<SVC>> & GetRouteContext<CTXMap, Rsc[Key]> & { Response: Rsc[Key]["success"] },
LowerServices<EffectDeps<SVC>> & GetRouteContext<CTXMap, Rsc[Key]["config"]> & {
Response: Rsc[Key]["success"]
},
"flat"
>
) => Effect<A, E, R2>
Expand Down

0 comments on commit c9a4ad4

Please sign in to comment.