diff --git a/packages/server/src/context.ts b/packages/server/src/context.ts index 69fa71eb..7bdb83a7 100644 --- a/packages/server/src/context.ts +++ b/packages/server/src/context.ts @@ -2,8 +2,6 @@ import type { IsNever } from '@orpc/shared' export type Context = Record -export type TypeInitialContext = (type: T) => unknown - export type MergedContext = T & U export function mergeContext( diff --git a/packages/server/src/procedure.ts b/packages/server/src/procedure.ts index 626d592a..a1284bd5 100644 --- a/packages/server/src/procedure.ts +++ b/packages/server/src/procedure.ts @@ -1,6 +1,6 @@ import type { ContractProcedureDef, ErrorMap, Meta, ORPCErrorConstructorMap, Schema, SchemaInput, SchemaOutput } from '@orpc/contract' import type { Promisable } from '@orpc/shared' -import type { Context, TypeInitialContext } from './context' +import type { Context } from './context' import type { AnyMiddleware } from './middleware' import { isContractProcedure } from '@orpc/contract' @@ -41,7 +41,7 @@ export interface ProcedureDef< TErrorMap extends ErrorMap, TMeta extends Meta, > extends ContractProcedureDef { - __initialContext?: TypeInitialContext + __initialContext?: (type: TInitialContext) => unknown middlewares: AnyMiddleware[] inputValidationIndex: number outputValidationIndex: number