diff --git a/restify/restify.d.ts b/restify/restify.d.ts index ca047e17d..2afacc520 100644 --- a/restify/restify.d.ts +++ b/restify/restify.d.ts @@ -152,12 +152,12 @@ declare module "restify" { overrides?: Object; } - interface next { + interface Next { (err?: any): any; } interface RequestHandler { - (req: Request, res: Response, next: next): any; + (req: Request, res: Response, next: Next): any; } export function createServer(options?: ServerOptions): Server;