Elijah Schow
ec2c36e82b
Add `$overrideModelOptions' to 'INgModelController' ( closes #19136 ) ( #19880 )
...
AngularJS Issue:
https://github.com/angular/angular.js/issues/12884
AngularJS Documentation:
https://docs.angularjs.org/api/ng/type/ngModel.NgModelController#$overrideModelOptions
AngularJS Source:
https://github.com/angular/angular.js/blob/master/src/ng/directive/ngModel.js#L863
2017-10-16 09:04:19 -07:00
Georgii Dolzhykov
69acc07b23
angular: Better types for HTTP interceptors & response objects ( #19247 )
...
* Better types for HTTP interceptors & response objects
* Fix failing tests
* Don't use TS 2.3 features, staying compatible with 2.1
2017-08-22 22:22:20 +01:00
Andy
5d6c651a1a
Apply stricter lint rules ( #19063 )
2017-08-17 14:53:41 -07:00
Leonard Thieu
351589d38d
[angular] Add index signature to JQLite. ( #18767 )
2017-08-14 11:28:41 -07:00
Joel Poloney
a7bc5ed2d4
Adding missing race method to angular.IQService ( #18476 )
...
* Adding missing race method to angular.IQService
https://docs.angularjs.org/api/ng/service/$q lists race(promises); as a valid method in AngularJS $q. Adding this type so it can be used accordingly.
* Fixing lint errors
* Fixing use of array
2017-07-28 12:47:05 -07:00
Angus Jones
2cde2fb1ed
Remove [index: string]: any; in IRootScopeService
...
To bring it into line with both the documentation (https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular#a-word-on-scope-and-assigning-new-members ) and the general guidelines (https://github.com/Microsoft/TypeScript/issues/12596#issuecomment-299976171 ).
2017-07-18 10:00:28 +10:00
Eddie Stanley
cb14ef339d
[angular] Added support for specifying the JSON-P callback parameter name to $http service
2017-07-12 19:30:52 +10:00
Leonard Thieu
efc67e63d9
[angular][jquery] Fix merge issue with cssPropertySetter.
2017-06-26 17:36:16 -04:00
Leonard Thieu
d8e10aafad
Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped into angular
2017-06-23 09:34:22 -04:00
Nathan Shively-Sanders
fcb37f9fe0
Merge pull request #17281 from kalleguld/master
...
angular: gave a more precise return type for IQService.all()
2017-06-22 14:28:29 -07:00
Leonard Thieu
b7f084da26
[angular] Add @types/jquery@3 integration tests.
2017-06-21 18:07:02 -04:00
Leonard Thieu
ec325e9f84
Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped into angular
2017-06-21 17:27:57 -04:00
Kasper Guldmann Nielsen
2effeac8f0
angular: gave a more precise return type to $q.all<T>()
2017-06-21 18:53:30 +02:00
Nathan Shively-Sanders
31739ef0c6
Merge pull request #17303 from DefinitelyTyped/weak-types-round-3
...
More fixes for 2.4. Not all for weak types.
2017-06-20 09:20:23 -07:00
Nathan Shively-Sanders
1119ad2d81
More fixes for 2.4. Not all for weak types:
...
2.4 also has been inference for generics, which finds more errors as
well.
2017-06-19 13:00:47 -07:00
Leonard Thieu
9e58e7e879
[angular] Remove dependency on @types/jquery.
2017-06-19 14:46:49 -04:00
Nathan Shively-Sanders
37e41d33e4
Deprecate incorrect resolve overload and usage
2017-06-19 09:30:38 -07:00
Kasper Guldmann Nielsen
5c0f7336fb
angular: gave a more precise return type for IQService.all()
2017-06-18 22:20:49 +02:00
Leonard Thieu
1c3565933c
:(
2017-06-13 13:00:42 -04:00
Cosmin Ababei
7ce18dce88
Added locals to $evalAsync ( #16725 )
...
* Added locals to $evalAsync
See https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$evalAsync
* Changed the return type of the expression inside $evalAsync
2017-06-02 08:03:52 -07:00
Caleb St-Denis
514a27de01
angular - Separate interfaces for each lifecycle hook ( #16299 )
...
* Separate interfaces for each lifecycle hook
Having one required hook per interface leads to greater type safety than
having a single IController interface with all properties optional.
Namely, the IController interface will not help you if you misspell a hook
name. (A slight improvement, admittedly, but an improvement nonetheless.)
This is closer to how the typings are done for lifecycle hooks in ng2.
* Use `dtslint`
* Fix trailing whitespace
2017-05-03 12:02:48 -07:00
Mateusz
d5240b6d9c
Re-add generic Function type to IInjector.invoke() sygnature. ( #16042 )
...
Looks like it is used in some projects. 'Function' should be treated
as a function with '(..args: any[]) => any' signature.
2017-04-26 11:47:36 -07:00
Mateusz Greszta
30b9603742
Improve types of 'instantiate' and 'invoke' of IInjectorService.
...
The result is inferred form the argument, which removes the need of any cast.
2017-04-18 17:01:47 +02:00
Nathan Shively-Sanders
51430746a2
Merge pull request #15519 from maxlk/ng-model-options
...
@types/angular Define debounce option in ng-model-options
2017-03-30 16:02:56 -07:00
Nathan Shively-Sanders
45a968de32
Merge pull request #15364 from thr0wn/master
...
angularjs - Fix ITimeoutService interface ($timeout signature)
2017-03-30 15:51:39 -07:00
Andy
4cac3c5b44
Apply new lint rules in more packages ( #15521 )
2017-03-30 12:33:22 -07:00
Andy
3e49f5d2ba
angular: Apply new lint rules and remove redundant rules from tslint.json ( #15484 )
2017-03-29 15:33:53 -07:00
Maxim Kulikov
172eb8218d
Define debounce option in ng-model-options
2017-03-29 15:52:59 +03:00
Natan Camargos
b3959a812e
angularjs - Fix ITimeoutService interface ($timeout signature)
...
$timeout is not correctly described by ITimeoutService,
causing compile time errors like: 'TS2322:Type 'IPromise<IPromise>' is not
assignable to type 'IPromise'...'
2017-03-28 23:05:50 -03:00
Andy Hanson
354cec620d
Move all packages to a types directory
2017-03-24 14:27:52 -07:00