From a6625f59620cf2a4daf8daf894b494a12d8e4670 Mon Sep 17 00:00:00 2001 From: Raphael Schweizer Date: Fri, 6 Mar 2015 13:01:40 +0100 Subject: [PATCH] add angular $animate.animate declaration --- angularjs/angular-animate.d.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/angularjs/angular-animate.d.ts b/angularjs/angular-animate.d.ts index a01c93ef5..f649d65f7 100644 --- a/angularjs/angular-animate.d.ts +++ b/angularjs/angular-animate.d.ts @@ -1,6 +1,6 @@ // Type definitions for Angular JS 1.3 (ngAnimate module) // Project: http://angularjs.org -// Definitions by: Michel Salib , Adi Dahiya +// Definitions by: Michel Salib , Adi Dahiya , Raphael Schweizer // Definitions: https://github.com/borisyankov/DefinitelyTyped /// @@ -25,6 +25,17 @@ declare module ng.animate { */ enabled(value?: boolean, element?: JQuery): boolean; + /** + * Performs an inline animation on the element. + * + * @param element the element that will be the focus of the animation + * @param from a collection of CSS styles that will be applied to the element at the start of the animation + * @param to a collection of CSS styles that the element will animate towards + * @param className an optional CSS class that will be added to the element for the duration of the animation (the default class is 'ng-inline-animate') + * @returns the animation callback promise + */ + animate(element: JQuery, from: any, to: any, className?: string): ng.IPromise; + /** * Appends the element to the parentElement element that resides in the document and then runs the enter animation. *