Skip to content

Commit

Permalink
Merge pull request #349 from 0x0a0d/fix-d.ts
Browse files Browse the repository at this point in the history
imp(index.d.ts): correct onError req type
  • Loading branch information
icebob authored Mar 31, 2024
2 parents ee81bda + ef86f81 commit c6ec800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6ec800

Please sign in to comment.