From 4157d2bf007bfe91ee61d179f7230a0a60f478b0 Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswamy Date: Fri, 1 Nov 2013 14:56:56 -0400 Subject: [PATCH 1/2] type directive factory with Function type - the existing type fails with the stricter 0.9.5 compiler --- angularjs/angular.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index f396593ef5..137f72fe15 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -94,7 +94,7 @@ declare module ng { controller(name: string, controllerConstructor: Function): IModule; controller(name: string, inlineAnnotadedConstructor: any[]): IModule; controller(object : Object): IModule; - directive(name: string, directiveFactory: (...params:any[])=> IDirective): IModule; + directive(name: string, directiveFactory: Function): IModule; directive(name: string, inlineAnnotadedFunction: any[]): IModule; directive(object: Object): IModule; factory(name: string, serviceFactoryFunction: Function): IModule; From e47fd7152b42c6d49311dff020d796533571c171 Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswamy Date: Fri, 1 Nov 2013 16:33:04 -0400 Subject: [PATCH 2/2] mocha's run callback is optional --- mocha/mocha.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mocha/mocha.d.ts b/mocha/mocha.d.ts index cd4a06e464..5ea4237fc6 100644 --- a/mocha/mocha.d.ts +++ b/mocha/mocha.d.ts @@ -8,7 +8,7 @@ interface Mocha { setup(options: MochaSetupOptions): Mocha; //Run tests and invoke `fn()` when complete. - run(callback: () => void): void; + run(callback?: () => void): void; // Set reporter as function reporter(reporter: () => void): Mocha;