Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
patroza committed Jan 19, 2025
1 parent 2975cab commit 57ebc13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/lib/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Effect, Layer, S } from "effect-app"
import type { TaggedRequestClassAny } from "effect-app/client"

// TODO
export declare const handlerFor: <Req extends TaggedRequestClassAny>(
export const handlerFor: <Req extends TaggedRequestClassAny>(
r: Req
) => {
// TODO: constrain L to be strict; only layers that are used in effect, or the other way around
Expand All @@ -18,4 +18,4 @@ export declare const handlerFor: <Req extends TaggedRequestClassAny>(
effect: Effect<Effect<S.Schema.Type<Req["success"]>, E2, R2>, E, R>
}
): typeof hndlr
} // TODO: as Layer?
} = (_) => (i) => i // TODO: as Layer?

0 comments on commit 57ebc13

Please sign in to comment.