|
1 |
| -// Type definitions for Angular JS 1.0 |
| 1 | +// Type definitions for Angular JS 1.2+ |
2 | 2 | // Project: http://angularjs.org
|
3 | 3 | // Definitions by: Diego Vilar <http://github.com/diegovilar>
|
4 | 4 | // Definitions: https://github.com/borisyankov/DefinitelyTyped
|
@@ -755,76 +755,4 @@ declare module ng {
|
755 | 755 | // angular.element
|
756 | 756 | // when calling angular.element, angular returns a jQuery object,
|
757 | 757 | // augmented with additional methods like e.g. scope.
|
758 |
| - // see: http://docs.angularjs.org/api/angular.element |
759 |
| - /////////////////////////////////////////////////////////////////////////// |
760 |
| - interface IAugmentedJQueryStatic extends JQueryStatic { |
761 |
| - (selector: string, context?: any): IAugmentedJQuery; |
762 |
| - (element: Element): IAugmentedJQuery; |
763 |
| - (object: {}): IAugmentedJQuery; |
764 |
| - (elementArray: Element[]): IAugmentedJQuery; |
765 |
| - (object: JQuery): IAugmentedJQuery; |
766 |
| - (func: Function): IAugmentedJQuery; |
767 |
| - (array: any[]): IAugmentedJQuery; |
768 |
| - (): IAugmentedJQuery; |
769 |
| - } |
770 |
| - |
771 |
| - interface IAugmentedJQuery extends JQuery { |
772 |
| - // TODO: events, how to define? |
773 |
| - //$destroy |
774 |
| - |
775 |
| - find(selector: string): IAugmentedJQuery; |
776 |
| - find(element: any): IAugmentedJQuery; |
777 |
| - find(obj: JQuery): IAugmentedJQuery; |
778 |
| - |
779 |
| - controller(name: string): any; |
780 |
| - injector(): any; |
781 |
| - scope(): IScope; |
782 |
| - |
783 |
| - inheritedData(key: string, value: any): JQuery; |
784 |
| - inheritedData(obj: { [key: string]: any; }): JQuery; |
785 |
| - inheritedData(key?: string): any; |
786 |
| - |
787 |
| - |
788 |
| - } |
789 |
| - |
790 |
| - |
791 |
| - /////////////////////////////////////////////////////////////////////////// |
792 |
| - // AUTO module (angular.js) |
793 |
| - /////////////////////////////////////////////////////////////////////////// |
794 |
| - export module auto { |
795 |
| - |
796 |
| - /////////////////////////////////////////////////////////////////////// |
797 |
| - // InjectorService |
798 |
| - // see http://docs.angularjs.org/api/AUTO.$injector |
799 |
| - /////////////////////////////////////////////////////////////////////// |
800 |
| - interface IInjectorService { |
801 |
| - annotate(fn: Function): string[]; |
802 |
| - annotate(inlineAnnotadedFunction: any[]): string[]; |
803 |
| - get (name: string): any; |
804 |
| - instantiate(typeConstructor: Function, locals?: any): any; |
805 |
| - invoke(inlineAnnotadedFunction: any[]): any; |
806 |
| - invoke(func: Function, context?: any, locals?: any): any; |
807 |
| - } |
808 |
| - |
809 |
| - /////////////////////////////////////////////////////////////////////// |
810 |
| - // ProvideService |
811 |
| - // see http://docs.angularjs.org/api/AUTO.$provide |
812 |
| - /////////////////////////////////////////////////////////////////////// |
813 |
| - interface IProvideService { |
814 |
| - // Documentation says it returns the registered instance, but actual |
815 |
| - // implementation does not return anything. |
816 |
| - // constant(name: string, value: any): any; |
817 |
| - constant(name: string, value: any): void; |
818 |
| - |
819 |
| - decorator(name: string, decorator: Function): void; |
820 |
| - decorator(name: string, decoratorInline: any[]): void; |
821 |
| - factory(name: string, serviceFactoryFunction: Function): ng.IServiceProvider; |
822 |
| - factory(name: string, inlineAnnotadedFunction: any[]): ng.IServiceProvider; |
823 |
| - provider(name: string, provider: ng.IServiceProvider): ng.IServiceProvider; |
824 |
| - provider(name: string, serviceProviderConstructor: Function): ng.IServiceProvider; |
825 |
| - service(name: string, constructor: Function): ng.IServiceProvider; |
826 |
| - value(name: string, value: any): ng.IServiceProvider; |
827 |
| - } |
828 |
| - |
829 |
| - } |
830 |
| -} |
| 758 | + // see: http://docs.angularjs.org/api/angula |
0 commit comments