Skip to content

Commit 758852c

Browse files
committed
- Added less.d.ts
- Small fixes for express3 and underscore
1 parent 64f8e64 commit 758852c

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

express3.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ declare module "express3" {
112112
}
113113

114114
interface Response {
115+
app: Application;
116+
115117
status(code: number): Response;
116118

117119
set(field: Object): Response;

less.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module "less" {
2+
export var version: number[];
3+
export class Parser {
4+
}
5+
export class importer {
6+
}
7+
export class tree {
8+
}
9+
interface RenderOptions {
10+
compress?: bool;
11+
yuicompress?: bool;
12+
}
13+
export function render(input : string, callback : (err : Error, result: string) => void) : void;
14+
export function render(input : string, options : RenderOptions, callback : (err : Error, result: string) => void) : void;
15+
export function writeError(ctx, options);
16+
}

underscore.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ declare module "underscore" {
106106
declare module "underscore" {
107107
export function bind(_function : Function, object : any, ...arguments : any[]) : () => any;
108108
export function bindAll(object : any, ... methodNames : any[]) : void;
109-
export function memoize(_function : Function, hashFunction : (value : any) => any) : any;
109+
export function memoize(_function : Function, hashFunction? : (value : any) => any) : any;
110110
export function delay(_function, _wait : number, ...arguments : any[]) : void;
111111
export function defer(_function, ...arguments: any[]) : void;
112112
export function throttle(_function, wait : number) : Function;

0 commit comments

Comments
 (0)