Skip to content

Commit ef86f81

Browse files
committed
imp(index.d.ts): correct onError req type
1 parent ee81bda commit ef86f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ declare module "moleculer-web" {
465465
* In handlers, you must call the `res.end`. Otherwise, the request is unhandled.
466466
* @see https://moleculer.services/docs/0.14/moleculer-web.html#Error-handlers
467467
*/
468-
onError?: (req: IncomingMessage, res: ServerResponse, error: Error) => void;
468+
onError?: (req: IncomingRequest, res: ServerResponse, error: Error) => void;
469469
/**
470470
* The Moleculer-Web has a built-in rate limiter with a memory store.
471471
* @see https://moleculer.services/docs/0.14/moleculer-web.html#Rate-limiter

0 commit comments

Comments
 (0)