File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export class ErrorReporting {
120120 // tslint:disable-next-line:no-any
121121 koa ! : ( context : any , next : { } ) => IterableIterator < { } > ;
122122 // tslint:disable-next-line:no-any
123- koa2 ! : ( context : any , next : { } ) => Promise < void > ;
123+ koa2 ! : ( context : any , next : Function ) => Promise < void > ;
124124
125125 constructor ( initConfiguration ?: ConfigurationOptions ) {
126126 if ( ! ( this instanceof ErrorReporting ) ) {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import {koaRequestInformationExtractor} from '../request-extractors/koa';
2525type KoaContext = {
2626 request : Request ; response : Response
2727} ;
28- type KoaNext = { } ;
28+ type KoaNext = Function ;
2929
3030/**
3131 * The koaErrorHandler should be placed at the beginning of the koa middleware
@@ -54,7 +54,7 @@ export function koa2ErrorHandler(
5454 const svc = config . getServiceContext ( ) ;
5555
5656 try {
57- await next ;
57+ await next ( ) ;
5858 } catch ( err ) {
5959 const em = new ErrorMessage ( )
6060 . consumeRequestInformation ( koaRequestInformationExtractor (
You can’t perform that action at this time.
0 commit comments