Skip to main content

TrpcFrameworkOptions

@h4ad/serverless-adapter > TrpcFrameworkOptions

(type) TrpcFrameworkOptions

The options to customize the TrpcFramework

Signature:

export type TrpcFrameworkOptions<TContext> = Omit<NodeHTTPHandlerOptions<AnyRouter, IncomingMessage, ServerResponse>, 'router' | 'createContext'> & \{
createContext?: (opts: NodeHTTPCreateContextFnOptions<IncomingMessage, ServerResponse>) => Omit<TContext, keyof TrpcAdapterBaseContext> | Promise<Omit<TContext, keyof TrpcAdapterBaseContext>>;
};

References: TrpcAdapterBaseContext