From 3ce9de0efb65906c08614fb21d602f310f303fbe Mon Sep 17 00:00:00 2001 From: basarat Date: Sat, 16 Nov 2013 04:29:03 +1100 Subject: [PATCH] express: implicity any and formatting --- express/express.d.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/express/express.d.ts b/express/express.d.ts index a33b465fcdddb9..a5dacc3a30556c 100644 --- a/express/express.d.ts +++ b/express/express.d.ts @@ -778,7 +778,7 @@ declare module "express" { */ render(view: string, options?: Object, callback?: (err: Error, html: string) => void ): void; - + render(view: string, callback?: (err: Error, html: string) => void ): void; locals: any; @@ -1026,20 +1026,24 @@ declare module "express" { * @param options or fn * @param fn */ - render(name: string, options?: Object, callback?: (err: Error, html: string) => void); - - render(name: string, callback: (err: Error, html: string) => void); + render(name: string, options?: Object, callback?: (err: Error, html: string) => void): void; + + render(name: string, callback: (err: Error, html: string) => void): void; get(name: string, ...handlers: RequestFunction[]): any; + get(name: RegExp, ...handlers: RequestFunction[]): any; post(name: string, ...handlers: RequestFunction[]): any; + post(name: RegExp, ...handlers: RequestFunction[]): any; put(name: string, ...handlers: RequestFunction[]): any; + put(name: RegExp, ...handlers: RequestFunction[]): any; del(name: string, ...handlers: RequestFunction[]): any; + del(name: RegExp, ...handlers: RequestFunction[]): any; /**