Commit Graph
445 Commits
Author SHA1 Message Date
Ilya Mochalov 111be145ae angularjs: changed $q signature 2015-08-25 02:24:01 +05:00
Masahiro Wakame 4b8efa4350 Merge pull request #5220 from daltin/master
httpBackend updated to match Angular documentation
2015-08-21 23:41:47 +09:00
Masahiro Wakame e6b5bb92b3 Merge pull request #5321 from chrootsu/angularjs-deferred-tests
angularjs: added Deferred tests
2015-08-21 21:36:28 +09:00
Ilya Mochalov 7652914a5b angularjs: changed $timeout signature, added tests 2015-08-20 01:40:24 +05:00
Ilya Mochalov 68b97ecc7d angularjs: added Deferred tests 2015-08-20 01:39:57 +05:00
Giovanni Bassi 47b934362a Remove global module definition from angular-mocks
Because it conficts with commonjs.

See http://wiki.commonjs.org/wiki/Modules/1.1:

> In a module, there must be a free variable "module", that is an Object.

Also see the existing `module` declaration on:
https://github.com/borisyankov/DefinitelyTyped/blob/27e02d6674ffe8186a567515b4c157bcf945911e/node/node.d.ts#L61

Workaround is to use `angular.mock.module` instead of `module`.

Closes #2072
2015-08-19 16:47:20 -03:00
Ilya Mochalov d9b84213f2 angularjs: added $q tests 2015-08-18 19:46:11 +05:00
Ilya Mochalov 18c24780e3 angularjs: added Promise tests 2015-08-13 22:03:20 +05:00
Ilya Mochalov fcc892bba5 angularjs: changed $q.all() (added a type variable and tests) 2015-08-07 23:36:27 +05:00
Alexandru Ciuca 66135fcdb6 angular.d.ts - Reverted window and browser services to any 2015-08-06 08:13:50 +03:00
Ciuca, Alexandru 75e813a5d8 angular.d.ts - Reverted controller definition in IDirective to any. 2015-08-05 10:57:40 +03:00
tcurtis1 ea24441ae4 Problem with JsonResponseData interface, removed it. 2015-08-04 19:30:56 -06:00
tcurtis1 796e02caac Changes to httpBackend to conform to angular documentation here: https://code.angularjs.org/1.3.16/docs/api/ngMock/service/$httpBackend
Mainly add the option to pass a function in the url parameter. Also updated IRequestHandler interface respond function to return an IRequestHandler, and updated overloads.
Also added documentation.
2015-08-04 15:44:06 -06:00
tcurtis1 57866cd636 Added documentation and updated type definitions for angular mocks httpBackend. 2015-08-04 12:51:36 -06:00
Ciuca, Alexandru d2c8f8b955 Merge branch 'master' into angular-remove-any 2015-08-04 17:16:34 +03:00
Ciuca, Alexandru 3e2a590f8f angularjs - Switched any to generics for type safety.
See https://github.com/Microsoft/TypeScript/issues/4126
2015-08-04 10:57:41 +03:00
Ben Tesser d945844367 Angularjs: Add bind-to-controller to IControllerService 2015-08-04 00:21:01 -04:00
Nicolas Penin 8e1d9f0f30 Update angular.d.ts
added getters to ISCEDelegate
2015-08-03 10:57:23 +02:00
Basarat Ali Syed 855569dbc8 Merge pull request #5101 from use-strict/master
angularjs/angular.d.ts - Type safety for $watch and $watchCollection
2015-07-29 11:11:49 +10:00
use-strict 35527887e2 Fixed missing generic constraint 2015-07-28 14:14:29 +03:00
use-strict ac85b43a1c Type safety for $watch and $watchCollection
Added generic constraint to watched values, replacing "any". Using "any" looses type safety. The type should be inferred from the return type of the watching function, or given explicitly when using a watch expression.
2015-07-28 14:05:20 +03:00
Sam Noedel c713b75654 Add optional strict DI parameter to angular.injector 2015-07-24 15:45:56 -07:00
Tomasz Ducin 2c389556cc angular.js bugfix - interface ILogProvider extends IServiceProvider (missing .$get method)
There is a [`$logProvider`](https://docs.angularjs.org/api/ng/provider/$logProvider) in angular, here are the relevant source lines: https://github.com/angular/angular.js/blob/master/src/ng/log.js#L47-L67. It contains `.$get` method.

in Denifitely Typed, there is only:

```
    interface ILogProvider {
        debugEnabled(): boolean;
        debugEnabled(enabled: boolean): ILogProvider;
    }
```

(https://github.com/borisyankov/DefinitelyTyped/blob/master/angularjs/angular.d.ts#L865-L868). Note, there is no `.$get` method. THe interface should have extended ``IServiceProvider , i.e. `interface ILogProvider extends IServiceProvider`.
2015-07-22 10:36:59 +02:00
Masahiro Wakame d95ef5b4e8 Merge pull request #4665 from CodySchaaf/adding-angular-animateCss
Adds angular-animateCss definitions
2015-07-13 23:44:40 +09:00
Masahiro Wakame ae1d6f30b1 Merge pull request #4878 from stephenlautier/master
angularjs - Added $normalize to IAttributes
2015-07-13 21:57:43 +09:00
Masahiro Wakame 26128a3ca2 Merge pull request #4776 from lukeapage/patch-1
angular mocks - global inject is an alias
2015-07-13 07:59:05 +09:00
unknown 146e3fbff1 angularjs - Added $normalize to IAttributes 2015-07-09 12:01:43 +02:00
CodySchaaf 48daae6584 Adds angular-animateCss definitions
Re-adds deprecated ICookieStoreService since it can
still be used...for now.
Allow validators viewValue be an object, not just string.
2015-07-07 10:49:19 -07:00
James Keller 12a6d207e4 angular's $anchorScroll can be called with an optional has parameter ~ see https://code.angularjs.org/1.4.1/docs/api/ng/service/$anchorScroll 2015-07-01 22:42:50 -06:00
Luke Page 5c6f06e42f angular mocks - global inject is an alias
Adjust the global inject to be an actual alias to the inject definition.
This allows you to use the strict di version globally.
Also updated links to new format.
2015-06-30 14:25:10 +01:00
Vilmos Ioo a4619c4555 Changed to correct type 2015-06-26 14:31:10 -04:00
Vilmos Ioo 04c84eece2 IHttpProviderDefaults should have a cache property
The defaults of angular's $httpProvider have a cache property. https://docs.angularjs.org/api/ng/provider/$httpProvider#defaults
2015-06-26 14:22:43 -04:00
Maxime Fabre b58db06e15 Update Angular module in angular-resource 2015-06-18 17:14:16 +02:00
Masahiro Wakame 6bd85893a6 Merge pull request #4594 from billccn/master
Made the signature of INgModelController.$validators more precise
2015-06-14 19:21:10 +09:00
Bill Chen 8c64199797 Made the signature of INgModelController.$validators more precise and
corrected the return type of $asyncValidators

Tests included.
2015-06-09 17:21:58 +01:00
Bogdan I. Bursuc 9a63998d3e Merge remote-tracking branch 'master/master' 2015-06-09 08:03:19 +03:00
Bogdan I. Bursuc 2f4323724b Tests for ICurrentRoute property 2015-06-09 08:03:03 +03:00
Darryl Pogue 5dcc9e2047 Add angular.merge function
This is new API in Angular 1.4: https://docs.angularjs.org/api/ng/function/angular.merge
2015-06-02 13:22:40 -07:00
Bogdan I. Bursuc 0af334e2c9 ICurrentRoute.locals will also contain any resolved values 2015-06-01 17:28:16 +03:00
Bogdan I. Bursuc 9fbec53147 Merge remote-tracking branch 'master/master' 2015-06-01 17:15:55 +03:00
Bogdan I. Bursuc 64d5b5286f AngularJS: IActionDescriptor test new url parameter 2015-06-01 17:14:39 +03:00
Bogdan I. Bursuc e6360b8507 Add IResourceServiceProvider interface 2015-06-01 17:08:46 +03:00
Bogdan I. Bursuc adab66e6a9 Remove incorrect ICurrentRoute api 2015-06-01 17:08:20 +03:00
Bogdan I. Bursuc d9b2f58d68 IResourceServiceProvider 2015-06-01 09:27:43 +03:00
Masahiro Wakame 7d790b1862 Merge pull request #4501 from dimasty/master
Add Decorator definition to IModule
2015-05-31 10:14:03 -07:00
Masahiro Wakame 9b4daa3c01 Merge pull request #4483 from furny/upstream-angular-bindtocontroller
AngularJS 1.4 - `bindToController` object definition.
2015-05-31 10:03:17 -07:00
Dmitry V. Abuzyarov 3e6f6339a5 Add Decorator definition to IModule 2015-05-31 15:02:01 +03:00
Bogdan I. Bursuc c32e1df7c5 IActionDescriptor can have a url override also 2015-05-31 10:32:28 +03:00
Bogdan I. Bursuc e605741296 ICurrent route can sometimes have a 5108route param 2015-05-31 10:30:59 +03:00
John Reilly 2d4c4679bc Merge pull request #4488 from johnnyreilly/master
Update angular.d.ts - JSDoc-ed $filter
2015-05-29 13:26:56 +01:00