TRCP refactoring
Some checks failed
Lint / lint (push) Failing after 11s

This commit is contained in:
Julien Valverdé
2024-09-07 02:14:11 +02:00
parent 58d0d85dda
commit 65ef5f0896
5 changed files with 55 additions and 88 deletions

View File

@@ -16,11 +16,10 @@ const router = TRPCBuilder.pipe(Effect.map(t => t.router({
})))
const { TRPCRouter, TRPCRouterLive } = TRPC.TRPCRouter.make(router)
type TRouter = Context.Tag.Service<typeof TRPCRouter>
const ServerLive = Layer.empty.pipe(
Layer.provideMerge(TRPC.TRPCExpressRoute.TRPCExpressRouteLive({
Layer.provideMerge(TRPC.TRPCExpressRoute.TRPCExpressRouteLive(TRPCRouter, {
root: Config.succeed("/rpc")
})),