mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
pass npm run all in new definition-tester
This commit is contained in:
Vendored
+2
-17
@@ -4,21 +4,6 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module Less {
|
||||
// Promise definitions from ../es6-promise/es6-promise.d.ts
|
||||
interface Thenable<R> {
|
||||
then<U>(onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Thenable<U>;
|
||||
}
|
||||
|
||||
class Promise<R> implements Thenable<R> {
|
||||
constructor(callback: (resolve : (value?: R | Thenable<R>) => void, reject: (error?: any) => void) => void);
|
||||
|
||||
then<U>(onFulfilled?: (value: R) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Promise<U>;
|
||||
|
||||
catch<U>(onRejected?: (error: any) => U | Thenable<U>): Promise<U>;
|
||||
|
||||
finally<U>(finallyCallback: () => any): Promise<U>;
|
||||
}
|
||||
|
||||
interface RootFileInfo {
|
||||
filename: string;
|
||||
relativeUrls: boolean;
|
||||
@@ -90,8 +75,8 @@ interface LessStatic {
|
||||
render(input: string, callback: (error: Less.RenderError, output: Less.RenderOutput) => void): void;
|
||||
render(input: string, options: Less.Options, callback: (error: Less.RenderError, output: Less.RenderOutput) => void): void;
|
||||
|
||||
render(input: string): Less.Promise<Less.RenderOutput>;
|
||||
render(input: string, options: Less.Options): Less.Promise<Less.RenderOutput>;
|
||||
render(input: string): Promise<Less.RenderOutput>;
|
||||
render(input: string, options: Less.Options): Promise<Less.RenderOutput>;
|
||||
|
||||
version: number[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user