Merge branch 'master' into rename-repo-url

This commit is contained in:
vvakame
2016-03-17 21:06:54 +09:00
1140 changed files with 179704 additions and 179635 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ declare module "angular-animate" {
/**
* ngAnimate module (angular-animate.js)
*/
declare module angular.animate {
declare namespace angular.animate {
interface IAnimateFactory {
(...args: any[]): IAnimateCallbackObject;
}
+1 -1
View File
@@ -5,7 +5,7 @@
/// <reference path="./angular.d.ts" />
declare module angular {
declare namespace angular {
/**
* `Instruction` is a tree of {@link ComponentInstruction}s with all the information needed
* to transition each component in the app to a given route, including all auxiliary routes.
+3 -3
View File
@@ -14,7 +14,7 @@ declare module "angular-cookies" {
/**
* ngCookies module (angular-cookies.js)
*/
declare module angular.cookies {
declare namespace angular.cookies {
/**
* Cookies options
@@ -22,13 +22,13 @@ declare module angular.cookies {
*/
interface ICookiesOptions {
/**
* The cookie will be available only for this path and its sub-paths.
* The cookie will be available only for this path and its sub-paths.
* By default, this would be the URL that appears in your base tag.
*/
path?: string;
/**
* The cookie will be available only for this domain and its sub-domains.
* For obvious security reasons the user agent will not accept the cookie if the
* For obvious security reasons the user agent will not accept the cookie if the
* current domain is not a sub domain or equals to the requested domain.
*/
domain?: string;
+24 -24
View File
@@ -23,7 +23,7 @@ declare module "angular-mocks/ngAnimateMock" {
///////////////////////////////////////////////////////////////////////////////
// ngMock module (angular-mocks.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular {
declare namespace angular {
///////////////////////////////////////////////////////////////////////////
// AngularStatic
@@ -32,7 +32,7 @@ declare module angular {
interface IAngularStatic {
mock: IMockStatic;
}
// see https://docs.angularjs.org/api/ngMock/function/angular.mock.inject
interface IInjectStatic {
(...fns: Function[]): any;
@@ -104,27 +104,27 @@ declare module angular {
interface IHttpBackendService {
/**
* Flushes all pending requests using the trained responses.
* @param count Number of responses to flush (in the order they arrived). If undefined, all pending requests will be flushed.
* @param count Number of responses to flush (in the order they arrived). If undefined, all pending requests will be flushed.
*/
flush(count?: number): void;
/**
* Resets all request expectations, but preserves all backend definitions.
*/
resetExpectations(): void;
/**
* Verifies that all of the requests defined via the expect api were made. If any of the requests were not made, verifyNoOutstandingExpectation throws an exception.
*/
verifyNoOutstandingExpectation(): void;
/**
* Verifies that there are no outstanding requests that need to be flushed.
*/
verifyNoOutstandingRequest(): void;
/**
* Creates a new request expectation.
* Creates a new request expectation.
* Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false.
* Returns an object with respond method that controls how a matched request is handled.
* @param method HTTP method.
@@ -160,17 +160,17 @@ declare module angular {
* @param headers HTTP headers object to be compared with the HTTP headers in the request.
*/
expectHEAD(url: string | RegExp | ((url: string) => boolean), headers?: Object): mock.IRequestHandler;
/**
* Creates a new request expectation for JSONP requests.
* Throws a preformatted error if expectation(s) don't match supplied string, regular expression, or if function returns false.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
*/
*/
expectJSONP(url: string | RegExp | ((url: string) => boolean)): mock.IRequestHandler;
/**
* Creates a new request expectation for PATCH requests.
* Creates a new request expectation for PATCH requests.
* Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
@@ -180,7 +180,7 @@ declare module angular {
expectPATCH(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object): mock.IRequestHandler;
/**
* Creates a new request expectation for POST requests.
* Creates a new request expectation for POST requests.
* Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
@@ -190,7 +190,7 @@ declare module angular {
expectPOST(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object): mock.IRequestHandler;
/**
* Creates a new request expectation for PUT requests.
* Creates a new request expectation for PUT requests.
* Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
@@ -200,7 +200,7 @@ declare module angular {
expectPUT(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object): mock.IRequestHandler;
/**
* Creates a new backend definition.
* Creates a new backend definition.
* Returns an object with respond method that controls how a matched request is handled.
* @param method HTTP method.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
@@ -210,7 +210,7 @@ declare module angular {
when(method: string, url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for DELETE requests.
* Creates a new backend definition for DELETE requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation.
@@ -218,7 +218,7 @@ declare module angular {
whenDELETE(url: string | RegExp | ((url: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for GET requests.
* Creates a new backend definition for GET requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation.
@@ -226,7 +226,7 @@ declare module angular {
whenGET(url: string | RegExp | ((url: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for HEAD requests.
* Creates a new backend definition for HEAD requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation.
@@ -234,7 +234,7 @@ declare module angular {
whenHEAD(url: string | RegExp | ((url: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for JSONP requests.
* Creates a new backend definition for JSONP requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation.
@@ -242,7 +242,7 @@ declare module angular {
whenJSONP(url: string | RegExp | ((url: string) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for PATCH requests.
* Creates a new backend definition for PATCH requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param data HTTP request body string, json object, regular expression or function that receives the data and returns true if the data matches the current expectation.
@@ -251,7 +251,7 @@ declare module angular {
whenPATCH(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for POST requests.
* Creates a new backend definition for POST requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param data HTTP request body string, json object, regular expression or function that receives the data and returns true if the data matches the current expectation.
@@ -260,7 +260,7 @@ declare module angular {
whenPOST(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler;
/**
* Creates a new backend definition for PUT requests.
* Creates a new backend definition for PUT requests.
* Returns an object with respond method that controls how a matched request is handled.
* @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation.
* @param data HTTP request body string, json object, regular expression or function that receives the data and returns true if the data matches the current expectation.
@@ -272,16 +272,16 @@ declare module angular {
export module mock {
// returned interface by the the mocked HttpBackendService expect/when methods
interface IRequestHandler {
/**
* Controls the response for a matched request using a function to construct the response.
* Controls the response for a matched request using a function to construct the response.
* Returns the RequestHandler object for possible overrides.
* @param func Function that receives the request HTTP method, url, data, and headers and returns an array containing response status (number), data, headers, and status text.
*/
respond(func: ((method: string, url: string, data: string | Object, headers: Object) => [number, string | Object, Object, string])): IRequestHandler;
/**
* Controls the response for a matched request using supplied static data to construct the response.
* Controls the response for a matched request using supplied static data to construct the response.
* Returns the RequestHandler object for possible overrides.
* @param status HTTP status code to add to the response.
* @param data Data to add to the response.
@@ -291,7 +291,7 @@ declare module angular {
respond(status: number, data: string | Object, headers?: Object, responseText?: string): IRequestHandler;
/**
* Controls the response for a matched request using the HTTP status code 200 and supplied static data to construct the response.
* Controls the response for a matched request using the HTTP status code 200 and supplied static data to construct the response.
* Returns the RequestHandler object for possible overrides.
* @param data Data to add to the response.
* @param headers Headers object to add to the response.
+4 -4
View File
@@ -13,7 +13,7 @@ declare module 'angular-resource' {
///////////////////////////////////////////////////////////////////////////////
// ngResource module (angular-resource.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular.resource {
declare namespace angular.resource {
/**
* Currently supported options for the $resource factory options argument.
@@ -74,7 +74,7 @@ declare module angular.resource {
responseType?: string;
interceptor?: IHttpInterceptor;
}
// Allow specify more resource methods
// No need to add duplicates for all four overloads.
interface IResourceMethod<T> {
@@ -84,7 +84,7 @@ declare module angular.resource {
(params: Object, success: Function, error?: Function): T;
(params: Object, data: Object, success?: Function, error?: Function): T;
}
// Allow specify resource moethod which returns the array
// No need to add duplicates for all four overloads.
interface IResourceArrayMethod<T> {
@@ -182,7 +182,7 @@ declare module angular.resource {
}
/** extensions to base ng based on using angular-resource */
declare module angular {
declare namespace angular {
interface IModule {
/** creating a resource service factory */
+2 -2
View File
@@ -13,7 +13,7 @@ declare module "angular-route" {
///////////////////////////////////////////////////////////////////////////////
// ngRoute module (angular-route.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular.route {
declare namespace angular.route {
///////////////////////////////////////////////////////////////////////////
// RouteParamsService
@@ -35,7 +35,7 @@ declare module angular.route {
// 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;
/**
* Causes $route service to update the current URL, replacing current route parameters with those specified in newParams.
* Provided property names that match the route's path segment definitions will be interpolated into the
+1 -1
View File
@@ -14,7 +14,7 @@ declare module "angular-sanitize" {
///////////////////////////////////////////////////////////////////////////////
// ngSanitize module (angular-sanitize.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular.sanitize {
declare namespace angular.sanitize {
///////////////////////////////////////////////////////////////////////////
// SanitizeService
+8 -8
View File
@@ -91,7 +91,7 @@ angular.module('http-auth-interceptor', [])
}]);
module HttpAndRegularPromiseTests {
namespace HttpAndRegularPromiseTests {
interface Person {
firstName: string;
lastName: string;
@@ -174,7 +174,7 @@ module HttpAndRegularPromiseTests {
// Test for AngularJS Syntax
module My.Namespace {
namespace My.Namespace {
export var x: any; // need to export something for module to kick in
}
@@ -247,7 +247,7 @@ foo.then((x) => {
});
// $q signature tests
module TestQ {
namespace TestQ {
interface TResult {
a: number;
b: string;
@@ -346,7 +346,7 @@ httpFoo.success((data, status, headers, config) => {
// Deferred signature tests
module TestDeferred {
namespace TestDeferred {
var any: any;
interface TResult {
@@ -386,7 +386,7 @@ module TestDeferred {
}
}
module TestInjector {
namespace TestInjector {
let $injector: angular.auto.IInjectorService;
$injector.strictDi = true;
@@ -397,7 +397,7 @@ module TestInjector {
// Promise signature tests
module TestPromise {
namespace TestPromise {
var result: any;
var any: any;
@@ -479,7 +479,7 @@ var isolateScope: ng.IScope = element.isolateScope();
// $timeout signature tests
module TestTimeout {
namespace TestTimeout {
interface TResult {
a: number;
b: string;
@@ -920,7 +920,7 @@ angular.module('copyExample', [])
$scope.reset();
}]);
module locationTests {
namespace locationTests {
var $location: ng.ILocationService;
+1 -1
View File
@@ -23,7 +23,7 @@ declare module 'angular' {
///////////////////////////////////////////////////////////////////////////////
// ng module (angular.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular {
declare namespace angular {
// not directly implemented, but ensures that constructed class implements $get
interface IServiceProviderClass {
+2 -2
View File
@@ -82,7 +82,7 @@ angular.module('http-auth-interceptor', [])
}]);
module HttpAndRegularPromiseTests {
namespace HttpAndRegularPromiseTests {
interface Person {
firstName: string;
lastName: string;
@@ -151,7 +151,7 @@ module HttpAndRegularPromiseTests {
// Test for AngularJS Syntax
module My.Namespace {
namespace My.Namespace {
export var x; // need to export something for module to kick in
}
+2 -2
View File
@@ -16,7 +16,7 @@ interface Function {
///////////////////////////////////////////////////////////////////////////////
// ng module (angular.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng {
declare namespace ng {
// All service providers extend this interface
interface IServiceProvider {
@@ -679,7 +679,7 @@ declare module ng {
scope?: any;
link?: Function;
compile?: Function;
controller?: any;
controller?: any;
}
///////////////////////////////////////////////////////////////////////////
+2 -2
View File
@@ -87,7 +87,7 @@ angular.module('http-auth-interceptor', [])
}]);
module HttpAndRegularPromiseTests {
namespace HttpAndRegularPromiseTests {
interface Person {
firstName: string;
lastName: string;
@@ -170,7 +170,7 @@ module HttpAndRegularPromiseTests {
// Test for AngularJS Syntax
module My.Namespace {
namespace My.Namespace {
export var x: any; // need to export something for module to kick in
}
+1 -1
View File
@@ -16,7 +16,7 @@ interface Function {
///////////////////////////////////////////////////////////////////////////////
// ng module (angular.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng {
declare namespace ng {
// not directly implemented, but ensures that constructed class implements $get
interface IServiceProviderClass {
+1 -1
View File
@@ -23,7 +23,7 @@ declare module 'angular' {
///////////////////////////////////////////////////////////////////////////////
// ng module (angular.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular {
declare namespace angular {
// not directly implemented, but ensures that constructed class implements $get
interface IServiceProviderClass {
+1 -1
View File
@@ -8,7 +8,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngAnimate module (angular-animate.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.animate {
declare namespace ng.animate {
///////////////////////////////////////////////////////////////////////////
// AnimateService
+2 -2
View File
@@ -13,7 +13,7 @@ declare module "angular-animate" {
/**
* ngAnimate module (angular-animate.js)
*/
declare module angular.animate {
declare namespace angular.animate {
interface IAnimateFactory extends Function {
enter?: (element: ng.IAugmentedJQuery, doneFn: Function) => IAnimateCssRunner|void;
leave?: (element: ng.IAugmentedJQuery, doneFn: Function) => IAnimateCssRunner|void;
@@ -254,7 +254,7 @@ declare module angular.animate {
}
declare module angular {
declare namespace angular {
interface IModule {
animate(cssSelector: string, animateFactory: angular.animate.IAnimateFactory): IModule;
}
+1 -1
View File
@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngCookies module (angular-cookies.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.cookies {
declare namespace ng.cookies {
///////////////////////////////////////////////////////////////////////////
// CookieService
+1 -1
View File
@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngCookies module (angular-cookies.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.cookies {
declare namespace ng.cookies {
///////////////////////////////////////////////////////////////////////////
// CookieService
+11 -11
View File
@@ -15,7 +15,7 @@ declare var inject: (...fns: Function[]) => any;
///////////////////////////////////////////////////////////////////////////////
// ngMock module (angular-mocks.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng {
declare namespace ng {
///////////////////////////////////////////////////////////////////////////
// AngularStatic
@@ -28,10 +28,10 @@ declare module ng {
interface IMockStatic {
// see http://docs.angularjs.org/api/angular.mock.debug
debug(obj: any): string;
// see http://docs.angularjs.org/api/angular.mock.inject
inject(...fns: Function[]): any;
// see http://docs.angularjs.org/api/angular.mock.module
module(...modules: any[]): any;
@@ -85,8 +85,8 @@ declare module ng {
expect(method: string, url: string, data?: any, headers?: any): mock.IRequestHandler;
expect(method: string, url: RegExp, data?: any, headers?: any): mock.IRequestHandler;
expect(method: RegExp, url: string, data?: any, headers?: any): mock.IRequestHandler;
expect(method: RegExp, url: RegExp, data?: any, headers?: any): mock.IRequestHandler;
expect(method: RegExp, url: RegExp, data?: any, headers?: any): mock.IRequestHandler;
when(method: string, url: string, data?: string, headers?: any): mock.IRequestHandler;
when(method: string, url: RegExp, data?: string, headers?: any): mock.IRequestHandler;
when(method: string, url: string, data?: RegExp, headers?: any): mock.IRequestHandler;
@@ -94,8 +94,8 @@ declare module ng {
when(method: RegExp, url: string, data?: string, headers?: any): mock.IRequestHandler;
when(method: RegExp, url: RegExp, data?: string, headers?: any): mock.IRequestHandler;
when(method: RegExp, url: string, data?: RegExp, headers?: any): mock.IRequestHandler;
when(method: RegExp, url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler;
when(method: RegExp, url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler;
expectDELETE(url: string, headers?: any): mock.IRequestHandler;
expectDELETE(url: RegExp, headers?: any): mock.IRequestHandler;
expectGET(url: string, headers?: any): mock.IRequestHandler;
@@ -131,13 +131,13 @@ declare module ng {
whenPUT(url: RegExp, data?: string, headers?: any): mock.IRequestHandler;
whenPUT(url: string, data?: RegExp, headers?: any): mock.IRequestHandler;
whenPUT(url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler;
}
}
export module mock {
// returned interface by the the mocked HttpBackendService expect/when methods
interface IRequestHandler {
respond(func: Function): void;
respond(func: Function): void;
respond(status: number, data?: any, headers?: any): void;
respond(data: any, headers?: any): void;
@@ -145,6 +145,6 @@ declare module ng {
passThrough(): void;
}
}
}
}
+2 -2
View File
@@ -14,7 +14,7 @@ declare var inject: (...fns: Function[]) => any;
///////////////////////////////////////////////////////////////////////////////
// ngMock module (angular-mocks.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng {
declare namespace ng {
///////////////////////////////////////////////////////////////////////////
// AngularStatic
@@ -59,7 +59,7 @@ declare module ng {
flushNext(expectedDelay?: number): void;
verifyNoPendingTasks(): void;
}
///////////////////////////////////////////////////////////////////////////
// IntervalService
// see https://code.angularjs.org/1.2.26/docs/api/ngMock/service/$interval
+3 -3
View File
@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngResource module (angular-resource.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.resource {
declare namespace ng.resource {
///////////////////////////////////////////////////////////////////////////
// ResourceService
@@ -20,7 +20,7 @@ declare module ng.resource {
///////////////////////////////////////////////////////////////////////////
interface IResourceService {
(url: string, paramDefaults?: any,
/** example: {update: { method: 'PUT' }, delete: deleteDescriptor }
/** example: {update: { method: 'PUT' }, delete: deleteDescriptor }
where deleteDescriptor : IActionDescriptor */
actionDescriptors?: any): IResourceClass;
}
@@ -73,7 +73,7 @@ declare module ng.resource {
}
/** extensions to base ng based on using angular-resource */
declare module ng {
declare namespace ng {
interface IModule {
/** creating a resource service factory */
+2 -2
View File
@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngResource module (angular-resource.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.resource {
declare namespace ng.resource {
///////////////////////////////////////////////////////////////////////////
// ResourceService
@@ -136,7 +136,7 @@ declare module ng.resource {
}
/** extensions to base ng based on using angular-resource */
declare module ng {
declare namespace ng {
interface IModule {
/** creating a resource service factory */
+2 -2
View File
@@ -13,7 +13,7 @@ declare module 'angular-resource' {
///////////////////////////////////////////////////////////////////////////////
// ngResource module (angular-resource.js)
///////////////////////////////////////////////////////////////////////////////
declare module angular.resource {
declare namespace angular.resource {
/**
* Currently supported options for the $resource factory options argument.
@@ -169,7 +169,7 @@ declare module angular.resource {
}
/** extensions to base ng based on using angular-resource */
declare module angular {
declare namespace angular {
interface IModule {
/** creating a resource service factory */
+17 -17
View File
@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngRoute module (angular-route.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.route {
declare namespace ng.route {
///////////////////////////////////////////////////////////////////////////
// RouteParamsService
@@ -40,8 +40,8 @@ declare module ng.route {
// to a controller that was not initialized as a result of a route maching.
current?: ICurrentRoute;
}
/**
* see https://code.angularjs.org/1.2.26/docs/api/ngRoute/provider/$routeProvider#when for API documentation
*/
@@ -62,24 +62,24 @@ declare module ng.route {
/**
* {string=|function()=}
* Html template as a string or a function that returns an html template as a string which should be used by ngView or ngInclude directives. This property takes precedence over templateUrl.
*
*
* If template is a function, it will be called with the following parameters:
*
*
* {Array.<Object>} - route parameters extracted from the current $location.path() by applying the current route
*/
template?: string;
/**
* {string=|function()=}
* Path or function that returns a path to an html template that should be used by ngView.
*
*
* If templateUrl is a function, it will be called with the following parameters:
*
*
* {Array.<Object>} - route parameters extracted from the current $location.path() by applying the current route
*/
templateUrl?: any;
/**
* {Object.<string, function>=} - An optional map of dependencies which should be injected into the controller. If any of these dependencies are promises, the router will wait for them all to be resolved or one to be rejected before the controller is instantiated. If all the promises are resolved successfully, the values of the resolved promises are injected and $routeChangeSuccess event is fired. If any of the promises are rejected the $routeChangeError event is fired. The map object is:
*
*
* - key - {string}: a name of a dependency to be injected into the controller.
* - factory - {string|function}: If string then it is an alias for a service. Otherwise if function, then it is injected and the return value is treated as the dependency. If the result is a promise, it is resolved before its value is injected into the controller. Be aware that ngRoute.$routeParams will still refer to the previous route within these resolve functions. Use $route.current.params to access the new route parameters, instead.
*/
@@ -87,9 +87,9 @@ declare module ng.route {
/**
* {(string|function())=}
* Value to update $location path with and trigger route redirection.
*
*
* If redirectTo is a function, it will be called with the following parameters:
*
*
* - {Object.<string>} - route parameters extracted from the current $location.path() by applying the current route templateUrl.
* - {string} - current $location.path()
* - {Object} - current $location.search()
@@ -97,14 +97,14 @@ declare module ng.route {
*/
redirectTo?: any;
/**
* Reload route when only $location.search() or $location.hash() changes.
*
* Reload route when only $location.search() or $location.hash() changes.
*
* This option defaults to true. If the option is set to false and url in the browser changes, then $routeUpdate event is broadcasted on the root scope.
*/
reloadOnSearch?: boolean;
/**
* Match routes without being case sensitive
*
*
* This option defaults to false. If the option is set to true, then the particular route can be matched without being case sensitive
*/
caseInsensitiveMatch?: boolean;
@@ -123,21 +123,21 @@ declare module ng.route {
interface IRouteProvider extends IServiceProvider {
/**
* Sets route definition that will be used on route change when no other route definition is matched.
*
*
* @params Mapping information to be assigned to $route.current.
*/
otherwise(params: IRoute): IRouteProvider;
/**
* Adds a new route definition to the $route service.
*
*
* @param path Route path (matched against $location.path). If $location.path contains redundant trailing slash or is missing one, the route will still match and the $location.path will be updated to add or drop the trailing slash to exactly match the route definition.
*
*
* - path can contain named groups starting with a colon: e.g. :name. All characters up to the next slash are matched and stored in $routeParams under the given name when the route matches.
* - path can contain named groups starting with a colon and ending with a star: e.g.:name*. All characters are eagerly stored in $routeParams under the given name when the route matches.
* - path can contain optional named groups with a question mark: e.g.:name?.
*
* For example, routes like /color/:color/largecode/:largecode*\/edit will match /color/brown/largecode/code/with/slashes/edit and extract: color: brown and largecode: code/with/slashes.
*
*
* @param route Mapping information to be assigned to $route.current on route match.
*/
when(path: string, route: IRoute): IRouteProvider;
+1 -1
View File
@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngSanitize module (angular-sanitize.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.sanitize {
declare namespace ng.sanitize {
///////////////////////////////////////////////////////////////////////////
// SanitizeService
+2 -2
View File
@@ -9,7 +9,7 @@
///////////////////////////////////////////////////////////////////////////////
// ngSanitize module (angular-sanitize.js)
///////////////////////////////////////////////////////////////////////////////
declare module ng.sanitize {
declare namespace ng.sanitize {
///////////////////////////////////////////////////////////////////////////
// SanitizeService
@@ -25,7 +25,7 @@ declare module ng.sanitize {
///////////////////////////////////////////////////////////////////////////
export module filter {
// Finds links in text input and turns them into html links.
// Finds links in text input and turns them into html links.
// Supports http/https/ftp/mailto and plain email address links.
// see https://code.angularjs.org/1.2.26/docs/api/ngSanitize/filter/linky
interface ILinky {
+15 -15
View File
@@ -3,7 +3,7 @@
// Definitions by: RomanoLindano <https://github.com/RomanoLindano>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module angularScenario {
declare namespace angularScenario {
export interface AngularModel {
scenario: any;
}
@@ -46,25 +46,25 @@ declare module angularScenario {
reload(): void;
window(): testWindow;
location(): testLocation;
}
}
export interface Matchers {
toEqual(value: any): void;
toBe(value: any): void;
toBeDefined(): void;
toBeTruthy(): void;
toBeFalsy(): void;
toMatch(regularExpression: any): void;
toBeNull(): void;
toBe(value: any): void;
toBeDefined(): void;
toBeTruthy(): void;
toBeFalsy(): void;
toMatch(regularExpression: any): void;
toBeNull(): void;
toContain(value: any): void;
toBeLessThan(value: any): void;
toBeGreaterThan(value: any): void;
toBeLessThan(value: any): void;
toBeGreaterThan(value: any): void;
}
export interface CustomMatchers extends Matchers{
export interface CustomMatchers extends Matchers{
}
export interface Expect extends CustomMatchers {
export interface Expect extends CustomMatchers {
not(): angularScenario.CustomMatchers;
}
@@ -92,7 +92,7 @@ declare module angularScenario {
export interface Select {
option(value: any): any;
option(...listOfValues: any[]): any;
}
}
export interface Element {
count(): Future;
@@ -111,7 +111,7 @@ declare module angularScenario {
scrollLeft(): Future;
scrollTop(): Future;
offset(): Future;
val(value: any): void;
text(value: any): void;
html(value: any): void;
+2 -2
View File
@@ -5,13 +5,13 @@
/// <reference path="../../jquery/jquery.d.ts" />
declare module ng {
declare namespace ng {
export interface IAngularStatic {
scenario: any;
}
}
declare module angularScenario {
declare namespace angularScenario {
export interface RunFunction {
(functionToRun: any): any;