Commit Graph

18 Commits

Author SHA1 Message Date
Leonard Thieu
a788977242 [angular] Add undocumented length property. 2017-06-19 15:05:50 -04:00
Leonard Thieu
9e58e7e879 [angular] Remove dependency on @types/jquery. 2017-06-19 14:46:49 -04:00
Leonard Thieu
1c3565933c :( 2017-06-13 13:00:42 -04:00
Nathan Shively-Sanders
163f4438df Fix weak type errors (#16845)
* Fix first round of weak type errors

Done through griddle-react

* 95% done with weak type fixes

* Fix last couple of weak type errors

* Remove some lint from mithril tests

* mithril's Lifecycle is not a weak type any more

Restore the Lifecycle constraints in the rest of the definitions.

* Fix react-redux tests after #16652 broke them

* Remove package-lock.json
2017-06-04 22:03:03 -07: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
Andy
fa2480ba61 Remove more namespaces from tests (#16029) 2017-04-20 09:06:00 -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
Andy
bbc61fbf93 Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
* Extend "dtslint/dt.json" directly instead of "../tslint.json".

* Convert more "../tslint.json" to "dtslint/dt.json"

* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07: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
Andy
5f3ba45136 Use dtslint (#15482) 2017-03-29 13:07:39 -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