mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Adding angular 1.2 definitions
Conflicts: angularjs/angular-mocks.d.ts
This commit is contained in:
Vendored
+4
-50
@@ -81,11 +81,11 @@ declare module ng {
|
||||
animation(name: string, animationFactory: Function): IModule;
|
||||
animation(name: string, inlineAnnotadedFunction: any[]): IModule;
|
||||
animation(object: Object): IModule;
|
||||
/** configure existing services.
|
||||
/** configure existing services.
|
||||
Use this method to register work which needs to be performed on module loading
|
||||
*/
|
||||
config(configFn: Function): IModule;
|
||||
/** configure existing services.
|
||||
/** configure existing services.
|
||||
Use this method to register work which needs to be performed on module loading
|
||||
*/
|
||||
config(inlineAnnotadedFunction: any[]): IModule;
|
||||
@@ -96,7 +96,7 @@ declare module ng {
|
||||
controller(object : Object): IModule;
|
||||
directive(name: string, directiveFactory: (...params:any[])=> IDirective): IModule;
|
||||
directive(name: string, inlineAnnotadedFunction: any[]): IModule;
|
||||
directive(object: Object): IModule;
|
||||
directive(object: Object): IModule;
|
||||
factory(name: string, serviceFactoryFunction: Function): IModule;
|
||||
factory(name: string, inlineAnnotadedFunction: any[]): IModule;
|
||||
factory(object: Object): IModule;
|
||||
@@ -212,7 +212,7 @@ declare module ng {
|
||||
$parent: IScope;
|
||||
|
||||
$id: number;
|
||||
|
||||
|
||||
// Hidden members
|
||||
$$isolateBindings: any;
|
||||
$$phase: any;
|
||||
@@ -602,12 +602,6 @@ declare module ng {
|
||||
endSymbol(value: string): IInterpolateProvider;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// RouteParamsService
|
||||
// see http://docs.angularjs.org/api/ng.$routeParams
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
interface IRouteParamsService {}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// TemplateCacheService
|
||||
// see http://docs.angularjs.org/api/ng.$templateCache
|
||||
@@ -620,46 +614,6 @@ declare module ng {
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
interface IRootScopeService extends IScope {}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// RouteService
|
||||
// see http://docs.angularjs.org/api/ng.$route
|
||||
// see http://docs.angularjs.org/api/ng.$routeProvider
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
interface IRouteService {
|
||||
reload(): void;
|
||||
routes: any;
|
||||
|
||||
// May not always be available. For instance, current will not be available
|
||||
// to a controller that was not initialized as a result of a route maching.
|
||||
current?: ICurrentRoute;
|
||||
}
|
||||
|
||||
// see http://docs.angularjs.org/api/ng.$routeProvider#when for options explanations
|
||||
interface IRoute {
|
||||
controller?: any;
|
||||
name?: string;
|
||||
template?: string;
|
||||
templateUrl?: any;
|
||||
resolve?: any;
|
||||
redirectTo?: any;
|
||||
reloadOnSearch?: boolean;
|
||||
}
|
||||
|
||||
// see http://docs.angularjs.org/api/ng.$route#current
|
||||
interface ICurrentRoute extends IRoute {
|
||||
locals: {
|
||||
$scope: IScope;
|
||||
$template: string;
|
||||
};
|
||||
|
||||
params: any;
|
||||
}
|
||||
|
||||
interface IRouteProvider extends IServiceProvider {
|
||||
otherwise(params: any): IRouteProvider;
|
||||
when(path: string, route: IRoute): IRouteProvider;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Directive
|
||||
// see http://docs.angularjs.org/api/ng.$compileProvider#directive
|
||||
|
||||
Reference in New Issue
Block a user