Skip to content

Commit

Permalink
Merge pull request #33 from Hongbo-Miao/patch-1
Browse files Browse the repository at this point in the history
feat(type): add function return type
  • Loading branch information
Cherry committed Oct 16, 2020
2 parents b8dea39 + 542aca8 commit a27aa2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Request, Response, NextFunction } from "express";
import { Request, Response, NextFunction, RequestHandler } from "express";

type Endpoint = {
url: string;
Expand Down Expand Up @@ -30,6 +30,6 @@ type OptionsConfig = {
*/
declare function reportTo(
options: OptionsConfig
): (req: Request, res: Response, next: NextFunction) => any;
): (req: Request, res: Response, next: NextFunction) => RequestHandler;

export { reportTo as default, OptionsConfig, Group, Endpoint };

0 comments on commit a27aa2c

Please sign in to comment.