Masahiro Wakame
f559d0cbfc
Merge pull request #5536 from deadalusai/fix-finally-signature
...
angularjs: Fix the finally method type signature
2015-08-26 02:12:08 +09:00
Benjamin Fox
fd7399b3fd
Fix the finally method type signature
...
The finally method does not change the type of the returned promise -
instead the original promise value is passed through unchanged.
2015-08-25 09:58:04 +12:00
Ilya Mochalov
111be145ae
angularjs: changed $q signature
2015-08-25 02:24:01 +05:00
Ilya Mochalov
7652914a5b
angularjs: changed $timeout signature, added tests
2015-08-20 01:40:24 +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
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
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
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
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
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
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
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
John Reilly
dfc0893316
Update angular.d.ts - JSDoc-ed $filter
2015-05-29 13:24:40 +01:00
André König
58d0e244a7
union type for bindToController
2015-05-29 10:06:25 +02:00
André König
5294692073
AngularJS 1.4 - bindToController object definition
...
This commit supports using `bindToController` as an object (see: https://github.com/angular/angular.js/blob/master/CHANGELOG.md#features-9 ).
2015-05-29 09:59:37 +02:00
Emiliano Marino
2aac6c6f50
added $setDirty method to INgModelController (added in v1.3.15+)
...
For Angular version 1.3.15+ INgModelController brings $setDirty method.
2015-05-21 10:47:22 -03:00
John Reilly
5e2826c8a5
Update angular.d.ts - JSDoc-ed the $cacheFactory
2015-05-20 10:39:52 +01:00
John Reilly
fefe9f1de6
angular.d.ts - added JSDoc for $broadcast and $emit
2015-05-15 09:30:41 +01:00
Masahiro Wakame
e7ef7d3204
Merge pull request #4116 from xi/fix-angular-headers
...
Fix IHttpPromiseCallbackArg.headers type
2015-04-15 23:58:38 +09:00
Tobias Bengfort
b01692175b
Fix IHttpPromiseCallbackArg.headers type
2015-04-15 11:44:24 +02:00
Henrik Huttunen
2fc34672e8
reference angular module using prefix "angular", not "ng"
2015-04-15 11:05:40 +03:00
Matt Podsiadlo
dc17c1cf2f
Added a definition for IBrowserService.defer
2015-04-13 10:52:41 +02:00
Basarat Ali Syed
02a93db66a
Merge pull request #3987 from rafw87/angularjs
...
Update angular.d.ts - Fix for $q.all() method
2015-03-31 09:48:17 +11:00
Ricardo Franco
cfb41c331e
fix missing module 'ng'
2015-03-30 18:17:40 -03:00
rafw87
7c0ed32587
Update angular.d.ts
...
$q.all() - separate overloads for array and hash version
2015-03-29 00:48:59 +01:00
vvakame
96b97cf462
add html5mode definitions on ILocationProvider
2015-03-21 01:24:23 +09:00
Basarat Ali Syed
adf8ebbcce
angular: another attempt for 1.4
2015-03-12 11:16:23 +11:00
Basarat Ali Syed
779fcd5d77
angular: deprecate ng
2015-03-12 11:10:14 +11:00
Basarat Ali Syed
d13c42ba67
angular: import should bring in the type information as well
...
closes https://github.com/borisyankov/DefinitelyTyped/issues/3670
closes https://github.com/borisyankov/DefinitelyTyped/pull/3714
2015-03-12 10:47:32 +11:00
André Werlang
13d8727de0
Define patch() on $http
2015-03-11 08:43:49 -03:00
Masahiro Wakame
bb20f0a1f7
Merge pull request #3799 from henkosch/master
...
Fixed link definition on IDirective with union type
2015-03-05 23:14:05 +09:00
Schnell Henrik
235f7734ec
Fixed link definition on IDirective with union type IDirectiveLinkFn | IDirectivePrePost.
2015-03-05 11:22:09 +01:00
Nathan Brown
d779349a3e
Update angular.d.ts to fix IHttpPromise.
...
IHttpPromise<T> does not extend IPromise<T> directly. It always transforms it with the response (of type T) as the `data` member. See $httpProvider.$http.sendRec.resolvePromise(response, status, headers, statusText). This matters when exploiting the inheritance to IPromise (for example in a return).
2015-03-03 15:50:12 -07:00