Skip to main content
Version: 11.x

Type Alias: NodeHTTPRequestHandlerOptions<TRouter, TRequest, TResponse>

NodeHTTPRequestHandlerOptions<TRouter, TRequest, TResponse>: NodeHTTPHandlerOptions<TRouter, TRequest, TResponse> & object

Defined in: packages/server/src/adapters/node-http/types.ts:107

Type declaration​

path​

path: string

The tRPC path to handle requests for

Example​

ts
'post.all'
ts
'post.all'

req​

req: TRequest

res​

res: TResponse

Type Parameters​

Type Parameter
TRouter extends AnyTRPCRouter
TRequest extends NodeHTTPRequest
TResponse extends NodeHTTPResponse