Skip to content

Commit 4dcda25

Browse files
committed
- More work on less.d.ts
1 parent 96d8cf0 commit 4dcda25

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: less.d.ts

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
module "less" {
22
export var version: number[];
3+
export class tree {
4+
toCSS(options: RenderOptions) : string;
5+
}
36
export class Parser {
7+
constructor (options?: ParserOptions);
8+
parse(text: string, callback: (error : Error, tree : tree) => void);
49
}
510
export class importer {
611
}
7-
export class tree {
12+
13+
interface ParserOptions {
14+
paths?: string[];
15+
filename?: string;
816
}
17+
918
interface RenderOptions {
1019
compress?: bool;
1120
yuicompress?: bool;
1221
}
22+
1323
export function render(input : string, callback : (err : Error, result: string) => void) : void;
1424
export function render(input : string, options : RenderOptions, callback : (err : Error, result: string) => void) : void;
1525
export function writeError(ctx, options);

0 commit comments

Comments
 (0)