Skip to content

Commit

Permalink
yog2-kernel: Fix strictFunctionTypes errors (DefinitelyTyped#20376)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy authored and weswigham committed Oct 11, 2017
1 parent e042aa6 commit ce93003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/yog2-kernel/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface ActionObject {

export interface Router extends express.Router {
action(actionName: string): express.RequestHandler | ActionObject;
wrapAsync(fn: (req?: express.Request, resp?: express.Response, next?: express.NextFunction) => any): express.RequestHandler;
wrapAsync(fn: (req: Request, resp: Response, next: express.NextFunction) => any): express.RequestHandler;
}

export namespace yog {
Expand Down
2 changes: 1 addition & 1 deletion types/yog2-kernel/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": false,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
Expand Down

0 comments on commit ce93003

Please sign in to comment.