Commit Graph
65 Commits
Author SHA1 Message Date
Robin Keller 25bf971c33 Update angular.module to accept an Injectable as the configFn.
This is undocumented behavior in Angular, but works because this argument is passed to $injector.invoke.
See https://github.com/angular/angular.js/blob/49aba51e6bfd3f6d59c0f28628cc983d84438cfa/src/loader.js lines 81, 370, and 111
2017-12-21 13:03:39 -08:00
AndyandGitHub 30957ad3d8 Remove // tslint:disable comments (#22198) 2017-12-14 13:24:24 -08:00
mtraynham 7f84ba072d Add optional generic typing test for Angular IDirectiveCompileFn 2017-11-06 11:55:05 -05:00
mtraynham bcf7644868 Angular - Default IScope generic typings for backwards compatibility 2017-11-06 11:34:28 -05:00
Daniel RosenwasserandGitHub 40d6bf0abd Merge pull request #21209 from fjmorel/master
angular: Add missing function to ICompileProvider
2017-11-04 01:35:10 -07:00
Fred Morel 20240a4128 Add strictComponentBindingsEnabled to ICompileProvider
Function added in angular 1.6.x
2017-11-02 16:12:59 -04:00
Georgii Dolzhykov 44e215bda7 AngularJS: compatibility with strictFunctionTypes
Fixes #21160
2017-11-01 15:13:22 +03:00
ohze.netandSheetal Nandi 8a6a758e90 add angular.element(callback) (#21011)
see document for `ready()` method at https://docs.angularjs.org/api/ng/function/angular.element#angularjs-s-jqlite
2017-10-26 11:46:09 -07:00
AndyandGitHub 097d2acf71 Miscellaneous lint fixes (#20849) 2017-10-22 15:22:50 -07:00
aidandownesandAndy 0b0c6b20b0 Update type definition for $injector.invoke to be consistent with angular documentation/code. (#19886)
- $inject.invoke also accepts optional context and locals agruments when function is an array annotation format.
- Also added tests.
2017-10-16 09:06:56 -07:00
Elijah SchowandAndy 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
AndyandGitHub 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andy Hanson 56c69546dd angular: Fix tests 2017-10-03 07:28:01 -07:00
oscar_busk 9d409aeadc Angular: add comment about debugInfo on scope()
Add a comment explaining that the scope() and isolatedScope() methods
requires debugInfoEnabled(true) to return the $scope.
2017-08-23 22:10:51 +02:00
Georgii DolzhykovandJohn Reilly 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
AndyandGitHub 1b54a38a43 Fix remaining lint errors (#19219) 2017-08-21 14:14:31 -07:00
AndyandGitHub 924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
AndyandGitHub 5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Leonard ThieuandMohamed Hegazy 351589d38d [angular] Add index signature to JQLite. (#18767) 2017-08-14 11:28:41 -07:00
Joel PoloneyandAndy 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
AndyandGitHub af8b0d1294 FIx new lint errors (#18382) 2017-07-25 10:34:23 -07:00
Angus JonesandGitHub 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
Ryan CavanaughandGitHub 3f097c6a2c Merge pull request #17554 from andrewiggins/fix-angular-resource
[angular][angular-resource] Cleanup angular readme and angular-resource
2017-07-13 23:28:57 -07: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 8850caf6fb [angular] Update @types/jquery v3 merging tests. 2017-07-11 11:59:58 -04:00
Andre Wiggins d9d3759064 Extend Angular jqLite static interface 2017-06-27 16:01:43 -07:00
Andre Wiggins 027ef3b94b Cleanup Angular readme and angular-resource
Fixes #15274
2017-06-27 15:43:28 -07:00
Leonard Thieu 56fe506135 [angular] Remove copyright header. 2017-06-27 17:30:57 -04:00
Leonard Thieu afb3c67664 [angular] types-publisher doesn't like a full header. 2017-06-27 10:05:00 -04:00
Leonard Thieu e3f59cc5e8 [angular] Add Document to JQueryStatic().
Add full header for JQLite definitions.
2017-06-27 09:48:55 -04:00
Leonard Thieu 70e1029f3a [angular] Linty 2017-06-26 18:17:27 -04:00
Leonard Thieu 4bbd7803bd [angular][jquery] Workaround duplicate index signature. 2017-06-26 17:55:25 -04: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-SandersandGitHub 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-SandersandGitHub 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
Leonard Thieu 8764d0f1ec [angular] Fix tests. 2017-06-19 20:56:36 -04: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 97c4c93ad6 [angular] Add tests for @types/jquery@3 merging. 2017-06-19 15:40:45 -04:00
Leonard Thieu 30922ed80a [angular] Change lib 'es6' to 'es5'. 2017-06-19 15:39:48 -04:00
Leonard Thieu 7e66d2c46d [angular] Lint - adjacent signatures. 2017-06-19 15:10:01 -04:00
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
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
Nathan Shively-Sanders 18e5e1b05d Fix angular tests for 2.4's improved generic checking 2017-06-16 10:53:33 -07:00
Leonard Thieu 1c3565933c :( 2017-06-13 13:00:42 -04:00