0.1.17 #18
@@ -10,7 +10,7 @@ export { TRPCContextTransactionEnum } from "./TRPCContext"
|
|||||||
export type { TRPCContext, TRPCContextTransaction } from "./TRPCContext"
|
export type { TRPCContext, TRPCContextTransaction } from "./TRPCContext"
|
||||||
|
|
||||||
|
|
||||||
export const makeService = <R>() => {
|
export const make = <R>() => {
|
||||||
class TRPCContextCreator extends Context.Tag("TRPCContextCreator")<TRPCContextCreator, {
|
class TRPCContextCreator extends Context.Tag("TRPCContextCreator")<TRPCContextCreator, {
|
||||||
readonly createContext: (transaction: TRPCContextTransaction) => TRPCContext<R>
|
readonly createContext: (transaction: TRPCContextTransaction) => TRPCContext<R>
|
||||||
readonly createExpressContext: (context: CreateExpressContextOptions) => TRPCContext<R>
|
readonly createExpressContext: (context: CreateExpressContextOptions) => TRPCContext<R>
|
||||||
|
|||||||
Reference in New Issue
Block a user