Skip to content

Commit

Permalink
Fix type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
xiondlph committed Oct 5, 2019
1 parent e760349 commit b2f8a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
@@ -1,7 +1,7 @@
import {Request, Response, NextFunction, RequestHandler} from "express";

declare function asyncWrapper(
fn: (req: Request, res: Response, next: NextFunction) => Promise<Response | undefined>
fn: (req: Request, res: Response, next: NextFunction) => Promise<Response | void>
): RequestHandler;

export = asyncWrapper;

0 comments on commit b2f8a1f

Please sign in to comment.