From aaa4710e6383fb67294e083675f48dafa005715f Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Tue, 7 Oct 2014 12:15:55 -0400 Subject: [PATCH] Add definitions for $animateProvider in angularjs As per the docs [here](https://docs.angularjs.org/api/ng/provider/$animateProvider). --- angularjs/angular-animate.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/angularjs/angular-animate.d.ts b/angularjs/angular-animate.d.ts index 9503e36d7..d4ec6eea2 100644 --- a/angularjs/angular-animate.d.ts +++ b/angularjs/angular-animate.d.ts @@ -18,4 +18,23 @@ declare module ng.animate { interface IAnimateService extends ng.IAnimateService { enabled(value?: boolean, element?: JQuery): boolean; } + + /** + * The animation object which contains callback functions for each event that is expected to be animated. + */ + interface IAnimateCallbackObject { + eventFn(element: Node, doneFn: () => void): Function; + } + + interface IAnimateProvider { + /** + * Registers a new injectable animation factory function. + */ + register(name: string, factory: () => IAnimateCallbackObject): void; + + /** + * Gets and/or sets the CSS class expression that is checked when performing an animation. + */ + classNameFilter(expression?: RegExp): RegExp; + } }