Skip to content

Commit c6ec800

Browse files
authored
Merge pull request #349 from 0x0a0d/fix-d.ts
imp(index.d.ts): correct onError req type
2 parents ee81bda + ef86f81 commit c6ec800

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)