Skip to content

Commit

Permalink
express: implicity any and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
basarat committed Nov 15, 2013
1 parent 4855196 commit 3ce9de0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions express/express.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

/**
Expand Down

0 comments on commit 3ce9de0

Please sign in to comment.