mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Merge pull request #1687 from michelsalib/angular-animate
Adding angular $animate definition
This commit is contained in:
commit
859d88a644
21
angularjs/angular-animate.d.ts
vendored
Normal file
21
angularjs/angular-animate.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
// Type definitions for Angular JS 1.2+ (ngAnimate module)
|
||||
// Project: http://angularjs.org
|
||||
// Definitions by: Michel Salib <michelsalib@hotmail.com>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="angular.d.ts" />
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// ngAnimate module (angular-animate.js)
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
declare module ng.animate {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// AnimateService
|
||||
// see http://docs.angularjs.org/api/ngAnimate.$animate
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
interface IAnimateService extends ng.IAnimateService {
|
||||
enabled(value?: boolean, element?: JQuery): boolean;
|
||||
}
|
||||
}
|
||||
@ -1,7 +1,7 @@
|
||||
/// <reference path="angular.d.ts" />
|
||||
|
||||
// issue: https://github.com/borisyankov/DefinitelyTyped/issues/369
|
||||
https://github.com/witoldsz/angular-http-auth/blob/master/src/angular-http-auth.js
|
||||
// https://github.com/witoldsz/angular-http-auth/blob/master/src/angular-http-auth.js
|
||||
/**
|
||||
* @license HTTP Auth Interceptor Module for AngularJS
|
||||
* (c) 2012 Witold Szczerba
|
||||
|
||||
13
angularjs/angular.d.ts
vendored
13
angularjs/angular.d.ts
vendored
@ -799,10 +799,19 @@ declare module ng {
|
||||
inheritedData(key: string, value: any): JQuery;
|
||||
inheritedData(obj: { [key: string]: any; }): JQuery;
|
||||
inheritedData(key?: string): any;
|
||||
|
||||
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// AnimateService
|
||||
// see http://docs.angularjs.org/api/ng.$animate
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
interface IAnimateService {
|
||||
addClass(element: JQuery, className: string, done?: Function): void;
|
||||
enter(element: JQuery, parent: JQuery, after: JQuery, done?: Function): void;
|
||||
leave(element: JQuery, done?: Function): void;
|
||||
move(element: JQuery, parent: JQuery, after: JQuery, done?: Function): void;
|
||||
removeClass(element: JQuery, className: string, done?: Function): void;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// AUTO module (angular.js)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user