diff --git a/angularjs/angular-animate.d.ts b/angularjs/angular-animate.d.ts index e78b85c3ed..3ecc95b5b7 100644 --- a/angularjs/angular-animate.d.ts +++ b/angularjs/angular-animate.d.ts @@ -19,7 +19,7 @@ declare module angular.animate { // AnimateService // see http://docs.angularjs.org/api/ngAnimate/service/$animate /////////////////////////////////////////////////////////////////////////// - interface IAnimateService extends ng.IAnimateService { + interface IAnimateService extends angular.IAnimateService { /** * Globally enables / disables animations. * @@ -39,7 +39,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - animate(element: JQuery, from: any, to: any, className?: string, options?: IAnimationOptions): ng.IPromise; + animate(element: JQuery, from: any, to: any, className?: string, options?: IAnimationOptions): IPromise; /** * Appends the element to the parentElement element that resides in the document and then runs the enter animation. @@ -50,7 +50,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - enter(element: JQuery, parentElement: JQuery, afterElement?: JQuery, options?: IAnimationOptions): ng.IPromise; + enter(element: JQuery, parentElement: JQuery, afterElement?: JQuery, options?: IAnimationOptions): IPromise; /** * Runs the leave animation operation and, upon completion, removes the element from the DOM. @@ -59,7 +59,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - leave(element: JQuery, options?: IAnimationOptions): ng.IPromise; + leave(element: JQuery, options?: IAnimationOptions): IPromise; /** * Fires the move DOM operation. Just before the animation starts, the animate service will either append @@ -71,7 +71,7 @@ declare module angular.animate { * @param afterElement the sibling element (which is the previous element) of the element that will be the focus of the move animation * @returns the animation callback promise */ - move(element: JQuery, parentElement: JQuery, afterElement?: JQuery): ng.IPromise; + move(element: JQuery, parentElement: JQuery, afterElement?: JQuery): IPromise; /** * Triggers a custom animation event based off the className variable and then attaches the className @@ -82,7 +82,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - addClass(element: JQuery, className: string, options?: IAnimationOptions): ng.IPromise; + addClass(element: JQuery, className: string, options?: IAnimationOptions): IPromise; /** * Triggers a custom animation event based off the className variable and then removes the CSS class @@ -93,7 +93,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - removeClass(element: JQuery, className: string, options?: IAnimationOptions): ng.IPromise; + removeClass(element: JQuery, className: string, options?: IAnimationOptions): IPromise; /** * Adds and/or removes the given CSS classes to and from the element. Once complete, the done() callback @@ -105,12 +105,12 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - setClass(element: JQuery, add: string, remove: string, options?: IAnimationOptions): ng.IPromise; + setClass(element: JQuery, add: string, remove: string, options?: IAnimationOptions): IPromise; /** * Cancels the provided animation. */ - cancel(animationPromise: ng.IPromise): void; + cancel(animationPromise: IPromise): void; } /////////////////////////////////////////////////////////////////////////// @@ -124,7 +124,7 @@ declare module angular.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): void; + register(name: string, factory: () => IAnimateCallbackObject): void; /** * Gets and/or sets the CSS class expression that is checked when performing an animation.