This commit is contained in:
Julien Valverdé
2024-07-04 23:31:18 +02:00
parent eb464edefd
commit f3a29d7831

View File

@@ -3,6 +3,9 @@ import { Context, Layer } from "effect"
import type { TRPCContext } from "./TRPCContext"
/**
* Provides a function that instantiates a fresh context for each tRPC procedure call
*/
export class CreateTRPCContext extends Context.Tag("CreateTRPCContext")<CreateTRPCContext,
(opts: CreateExpressContextOptions) => TRPCContext
>() {}