From eba1bc3c1383266311ef17d0078a2e8f8a5c9bdf Mon Sep 17 00:00:00 2001 From: ashwinr Date: Mon, 19 Aug 2013 15:51:33 -0400 Subject: [PATCH 1/2] Update d3.d.ts Fix transform definition. --- d3/d3.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d3/d3.d.ts b/d3/d3.d.ts index e1f1f9957..e60a6d9fd 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -188,7 +188,7 @@ declare module D3 { * * @param definition 2D affine transform string */ - transform(definition: string): any[]; + transform(definition: string): any; /** * Transpose an array of arrays. * From fd5c5d0f386c44059ac19975b66c24baca2343e1 Mon Sep 17 00:00:00 2001 From: ashwinr Date: Mon, 19 Aug 2013 16:01:33 -0400 Subject: [PATCH 2/2] update mocha definitions --- mocha/mocha.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mocha/mocha.d.ts b/mocha/mocha.d.ts index f9d8040b1..717d080dc 100644 --- a/mocha/mocha.d.ts +++ b/mocha/mocha.d.ts @@ -3,6 +3,17 @@ // Definitions by: Kazi Manzur Rashid // DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped +interface Mocha { + setup(options: MochaSetupOptions); + run(callback: () => void); +} + +interface MochaSetupOptions { + slow: number; + timeout: number; + ui: string; +} + declare var describe : { (description: string, spec: () => void): void; only(description: string, spec: () => void): void;