From ef86f812f972c5143832857ac1799f6343de6978 Mon Sep 17 00:00:00 2001 From: 0x0a0d Date: Sat, 24 Feb 2024 17:52:56 +0700 Subject: [PATCH] imp(index.d.ts): correct onError req type --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 44202438..f7e79455 100644 --- a/index.d.ts +++ b/index.d.ts @@ -465,7 +465,7 @@ declare module "moleculer-web" { * In handlers, you must call the `res.end`. Otherwise, the request is unhandled. * @see https://moleculer.services/docs/0.14/moleculer-web.html#Error-handlers */ - onError?: (req: IncomingMessage, res: ServerResponse, error: Error) => void; + onError?: (req: IncomingRequest, res: ServerResponse, error: Error) => void; /** * The Moleculer-Web has a built-in rate limiter with a memory store. * @see https://moleculer.services/docs/0.14/moleculer-web.html#Rate-limiter