@@ -3,7 +3,7 @@ import type { AnyProcedureContract, RouterContract } from '@orpc/contract'
33import type { ContractedRouter , DefaultInitialContext } from '@orpc/server'
44import type { Promisable } from '@orpc/shared'
55import type { StandardBodyHint } from '@standardserver/core'
6- import type { Request , Response } from 'express'
6+ import type { Request as ExpressRequest , Response as ExpressResponse } from 'express'
77import type { FastifyReply , FastifyRequest } from 'fastify'
88import type { Observable } from 'rxjs'
99import type { ORPCModuleConfig } from './module'
@@ -106,7 +106,7 @@ export class ImplementInterceptor implements NestInterceptor {
106106 this . httpAdapterHost = httpAdapterHost
107107
108108 this . codec = new OpenAPIHandlerCodecCore ( this . config )
109- this . toStandardLazyRequest = this . config . toStandardLazyRequest ?? ( ( req : Request | FastifyRequest , res : Response | FastifyReply ) => {
109+ this . toStandardLazyRequest = this . config . toStandardLazyRequest ?? ( ( req : ExpressRequest | FastifyRequest , res : ExpressResponse | FastifyReply ) => {
110110 const standardRequest = toStandardLazyRequest (
111111 'raw' in req ? req . raw : req ,
112112 'raw' in res ? res . raw : res ,
@@ -132,8 +132,8 @@ export class ImplementInterceptor implements NestInterceptor {
132132 ` )
133133 }
134134
135- const req : Request | FastifyRequest = ctx . switchToHttp ( ) . getRequest ( )
136- const res : Response | FastifyReply = ctx . switchToHttp ( ) . getResponse ( )
135+ const req : ExpressRequest | FastifyRequest = ctx . switchToHttp ( ) . getRequest ( )
136+ const res : ExpressResponse | FastifyReply = ctx . switchToHttp ( ) . getResponse ( )
137137
138138 const standardRequest = this . toStandardLazyRequest ( req , res )
139139
0 commit comments