File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ declare namespace fastifyRequestContext {
6969 export { fastifyRequestContext as default }
7070}
7171
72- declare function fastifyRequestContext (
72+ declare function fastifyRequestContext (
7373 ...params : Parameters < FastifyRequestContext >
7474) : ReturnType < FastifyRequestContext >
7575export = fastifyRequestContext
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ expectType<AsyncLocalStorage<RequestContext>>(asyncLocalStorage)
6868const getHandler : RouteHandlerMethod = function ( request , _reply ) {
6969 expectType < RequestContext > ( request . requestContext )
7070}
71+ expectType < RouteHandlerMethod > ( getHandler )
7172
7273expectType < string | undefined > ( requestContext . get ( 'a' ) )
7374expectType < FastifyBaseLogger | undefined > ( requestContext . get ( 'log' ) )
You can’t perform that action at this time.
0 commit comments