We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
next
1 parent 4bd26cd commit 5838e49Copy full SHA for 5838e49
src/interfaces/koa.ts
@@ -42,11 +42,12 @@ export function koaErrorHandler(client: RequestHandler, config: Configuration) {
42
* @param {Function} next - the result of the request handlers to yield
43
* @returns {Undefined} does not return anything
44
*/
45
- return function*(this: {request: Request; response: Response;}, next: {}) {
+ return function*(
46
+ this: {request: Request; response: Response;}, next: Function) {
47
const svc = config.getServiceContext();
48
49
try {
- yield next;
50
+ yield next();
51
} catch (err) {
52
const em = new ErrorMessage()
53
.consumeRequestInformation(koaRequestInformationExtractor(
0 commit comments