From 05432c972c059656035392b44f9b51d094bee32b Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Wed, 8 Oct 2014 00:01:10 -0400 Subject: [PATCH] Add return type to register fn in $animateProvider --- angularjs/angular-animate.d.ts | 2 +- angularjs/angular.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/angularjs/angular-animate.d.ts b/angularjs/angular-animate.d.ts index e725a1313..e3801218b 100644 --- a/angularjs/angular-animate.d.ts +++ b/angularjs/angular-animate.d.ts @@ -103,7 +103,7 @@ declare module ng.animate { * @param name The name of the animation. * @param factory The factory function that will be executed to return the animation object. */ - register(name: string, factory: () => ng.IAnimateCallbackObject); + register(name: string, factory: () => ng.IAnimateCallbackObject): void; /** * Gets and/or sets the CSS class expression that is checked when performing an animation. diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 074e980e4..20e687894 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -605,7 +605,7 @@ declare module ng { * @param name The name of the animation. * @param factory The factory function that will be executed to return the animation object. */ - register(name: string, factory: () => IAnimateCallbackObject); + register(name: string, factory: () => IAnimateCallbackObject): void; /** * Gets and/or sets the CSS class expression that is checked when performing an animation.