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
Raphael Schweizer
a6625f5962
add angular $animate.animate declaration
2015-03-06 13:07:51 +01: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
jayoungers
561b5a075e
ICacheObject.put and IAnimateService.addClass Return Types
...
Updating ICacheObject.put return type to the type of object passed in (opposed to just void):
https://docs.angularjs.org/api/ng/type/$cacheFactory.Cache
Updating IAnimateService.addClass to return the type IPromise<any> (opposed to just void):
https://docs.angularjs.org/api/ngAnimate/service/$animate
2015-02-25 13:54:14 -06:00
Jukka Hyvärinen
8c30472a68
indentation
2015-02-10 14:06:32 +02:00
Jukka Hyvärinen
01d3cc0458
Added IRepeatScope
2015-02-10 12:52:51 +02:00
John Reilly
ffdb69f0e1
Remove overloads using Union Types
2015-01-19 16:07:20 +00:00
johnnyreilly
30ce45e0e7
AngularJS: IRoute has been union typed
2015-01-17 22:09:34 +00:00
johnnyreilly
9fc7f5794c
Let the union types go forth and multiply
2015-01-17 08:04:09 +00:00
Stanley Goldman
b1f314ebbc
Adding withCredentials to IHttpProviderDefaults
2014-12-24 12:48:29 -05:00
Masahiro Wakame
b985d284fa
Merge pull request #3333 from martinmcwhorter/master
...
Defs for ngProgress
2014-12-18 13:40:35 +09:00
Masahiro Wakame
8ec1191cc2
Merge pull request #3334 from martinmcwhorter/angular-1.2
...
add INgModelController#$setPristine()
2014-12-18 13:22:23 +09:00
Martin McWhorter
17d8aadb53
Revert "add INgModelController#$setPristine()"
...
This reverts commit 22d7bbaa48 .
2014-12-15 12:24:59 +00:00
basarat
70ef283d9d
chore(angular-scenario) moved angular-scenario into its own folder (and hence nuget package). Closes # 1159
2014-12-14 18:31:25 +11:00
Martin McWhorter
22d7bbaa48
add INgModelController#$setPristine()
...
This exists in the 1.2.x API:
https://code.angularjs.org/1.2.27/docs/api/ng/type/ngModel.NgModelController
2014-12-12 17:04:41 +00:00
Nathan Brown
3461cb93a6
Update angular.d.ts comment with typo fix.
2014-12-04 12:05:46 -07:00
Xiot
d29a12401a
Changed IQPromise.reject to return IPromise<any> instead of IPromise<void> to be better compatible with most likely use cases.
2014-11-17 22:40:23 -05:00
Paulo Cesar
5ab1bd4840
squash! squash! update angular to released version 1.3+
...
interval delay isnt optional
2014-11-12 08:30:07 -02:00
Paulo Cesar
91ea0ef4ce
squash! update angular to released version 1.3+
...
undo optionals
2014-11-12 06:04:00 -02:00
Paulo Cesar
eb3420c93c
update angular to released version 1.3+
2014-11-12 01:57:38 -02:00
Jeremy Bell
c71628e076
Adding legacy 1.2 versions of angular-animate, angular-cookies, angular-mocks, angular-resource, angular-route, angular-sanitize, and angular-scenario to address a reference issue when you bring in the 1.2 version of the core angular library. Updated documentation links in the 1.2 versions to point to the 1.2 versions of the documentation. Labeled /angularjs/angular-*.ts as 1.3 in the headers. These will be the starting points for a deeper 1.3 update review - though they are mostly backwards compatible as-is.
2014-11-06 16:10:37 -05:00
Xiaohan Zhang
5868972ea7
Add applyAsync to IRootScopeService
2014-11-03 13:37:12 -08:00
Mackay, John
f41b28ef4b
Adding Angular 1.3's 'bindToController' directive property
2014-10-29 14:26:14 -07:00
vvakame
7252edb0ec
fix broken test
2014-10-27 11:26:08 +09:00
vvakame
0efa290ca6
update angular.d.ts
2014-10-27 11:22:46 +09:00
Matthias Fischmann
d325c983f9
headers function in http promise callbacks: passing no name arg returns entire headers object.
2014-10-22 14:25:15 +02:00
PaloMraz
3230867979
Fixed angular.version.codeName casing
...
codename property renamed to correct codeName.
2014-10-17 10:58:15 +02:00
Masahiro Wakame
39aafd266d
Merge pull request #2962 from 5angel/patch-1
...
overload for element.controller
2014-10-14 11:13:47 +09:00
Masahiro Wakame
7bf3733877
Merge pull request #2936 from adidahiya/angular
...
Update angularjs $animate and $animateProvider definitions
2014-10-14 10:30:13 +09:00
5angel
24c9d362f2
overload for element.controller
2014-10-13 16:59:32 +04:00
Adi Dahiya
8d6654ebf3
Fix 'move' method name in angularjs $animate service typings
2014-10-10 10:51:04 -04:00
Martin McWhorter
76e1eb7179
$setPristine() INgModelController
...
Doc reference:
https://code.angularjs.org/1.2.26/docs/api/ng/type/ngModel.NgModelController
2014-10-08 11:05:53 +01:00
Adi Dahiya
df4413992a
Add return type to cancel fn in $animate
2014-10-08 00:06:13 -04:00
Adi Dahiya
05432c972c
Add return type to register fn in $animateProvider
2014-10-08 00:01:10 -04:00
Adi Dahiya
e00a5588ee
Improve $animate service typings
2014-10-07 23:57:05 -04:00
Adi Dahiya
69ec24c5e9
Add default $animateProvider in angular.d.ts
2014-10-07 23:56:38 -04:00
Adi Dahiya
aaa4710e63
Add definitions for $animateProvider in angularjs
...
As per the docs [here](https://docs.angularjs.org/api/ng/provider/$animateProvider ).
2014-10-07 12:16:58 -04:00
Stephen Feest
4d33523877
Added typings for $templateRequest service
2014-10-01 15:42:32 +01:00
Punyashloka Biswal
de37f2dbbf
More precise type for $routeProvider.resolve
2014-09-24 18:35:13 -07:00
nojaf
08f69c570e
updated $asyncValidators
2014-09-07 10:41:09 +02:00
johnnyreilly
4553fe17eb
.search now allows number for paramValue
2014-09-05 14:03:19 +01:00
Masahiro Wakame
a9fa66235c
Merge pull request #2769 from mhegazy/tscParamsChange
...
Remove quotes from response files
2014-09-05 11:31:35 +09:00
Masahiro Wakame
e710ffb049
Merge pull request #2763 from nojaf/patch-1
...
Added $asyncValidators
2014-09-05 11:17:14 +09:00
Basarat Ali Syed
2167630b2a
Argument to eval and evalAsync are optional
...
Reference : https://github.com/angular/angular.js/pull/8558
2014-09-04 09:50:18 +10:00
Mohamed Hegazy
2aaa293cb1
Remove quotes from response files
2014-09-02 14:53:39 -07:00
Florian Verdonck
7affe8e6ed
Added $asyncValidators
...
Check https://docs.angularjs.org/api/ng/type/ngModel.NgModelController#$asyncValidators
2014-09-02 22:35:22 +02:00
John Reilly
7dbb5b99ec
AngularJS: JSDoc
2014-08-27 14:12:40 +01:00
John Reilly
b3d24088bc
AngularJS: JSDoc
2014-08-27 14:10:09 +01:00
John Reilly
17b7b270f5
Tightened up the ILocationService typings a little
2014-08-22 17:07:11 +01:00
John Reilly
639aa3c14d
Made tests noImplicitAny compliant
2014-08-22 12:14:55 +01:00
John Reilly
1b247dd0c7
AngularJS: Genericised angular.copy and added JSDoc
2014-08-22 12:09:25 +01:00
Paulo Cesar
ee3b10e2b0
$id is a number on 1.3
2014-08-22 06:11:30 -03:00
Paulo Cesar
db5232d423
squash! prepare for angular 1.3
...
add legacy for version 1.2 and move test files
2014-08-19 22:08:36 -03:00
Paulo Cesar
e49b7e4223
prepare for angular 1.3
2014-08-19 03:03:59 -03:00
basarat
16dffed6f3
angular: $scope extends $rootScope. closes #2593
2014-08-10 20:59:13 +10:00
Paulo Cesar
f2de3867de
squash! squash! fix tabs
...
rootscope <> iscope
2014-08-09 18:15:54 -03:00
Paulo Cesar
82447ac010
squash! fix tabs
...
directive interface definition and tests
2014-08-08 12:24:43 -03:00
Paulo Cesar
6c85496e81
fix tabs
2014-08-05 22:40:27 -03:00
Paulo Cesar
f1a45e0d4e
directive accept classes
2014-08-05 21:44:37 -03:00
Paulo Cesar
b7dda17cc1
angular directive changes, still missing #2605
2014-08-02 13:59:17 -03:00
Paulo Cesar
c874738f2e
add angular $viewChangeListeners to ngModelController
2014-08-02 01:23:38 -03:00
John Reilly
761209a551
Pull title back off
2014-07-31 13:26:15 +01:00
John Reilly
adec6babb5
Added title to
2014-07-30 17:22:20 +01:00
John Reilly
86d681f289
Fix test
2014-07-29 11:26:06 +01:00
John Reilly
68a3cb2875
Fix test
2014-07-29 11:21:28 +01:00
John Reilly
22894235a2
Add genericised forEach and indexer for FormController
2014-07-29 11:08:28 +01:00
Basarat Ali Syed
abfde2a300
Update angular.d.ts
...
remove unnecessary restriction on directive's `link` callback to accept optional parameters
2014-07-26 11:51:54 +10:00
Basarat Ali Syed
bfeb466418
Update angular-mocks.d.ts
...
allow
```ts
angular.mock.module("myApp", function($provide) {
$provide.value("myService", {
...
});
})
```
Also signature is consistent with the global in the same file:
```ts
declare var module: (...modules: any[]) => any;
```
2014-07-26 11:35:54 +10:00
vvakame
c322a99ff4
add test for angular.d.ts
2014-07-24 23:07:06 +09:00
vvakame
1ef19827ea
Merge branch 'patch-2' of github.com:ngbrown/DefinitelyTyped into ngbrown-patch-2
2014-07-24 22:52:43 +09:00
Tobias Bengfort
ba1b3d7d60
Fixup
2014-07-23 14:08:31 +02:00
Tobias Bengfort
625b9f2523
Fixup
2014-07-21 15:33:31 +02:00
Tobias Bengfort
fe47b495c8
angularjs: allow $q.when to be called w/o args
...
The current definition does not cover the case that the input type is
void.
2014-07-21 11:16:24 +02:00
John Reilly
dd9c603823
JSDoc
2014-07-11 14:42:06 +01:00
Renzo Slijp
4e1c39e76e
Changed generic type of IHttpPromiseCallback for error callback in then chaining
2014-07-03 15:47:51 +02:00
Renzo Slijp
842e595c53
Changed generic type of IHttpPromiseCallback for error callback to allow for difrent return type. It's likely that the error return type is different from the regular result type
2014-07-03 11:34:14 +02:00
Basarat Ali Syed
a9de1afa3e
Merge pull request #2420 from talk4date/ihttppromisefix
...
AngularJS Binding: Changed order of IHttpPromise.then for promise chaining
2014-07-03 10:30:57 +10:00
Herbert Poul
e839251ce9
Changed order of IHttpPromise.then for promise chaining
...
previously the following code resulted in tmp beeing of type:
ng.IPromise<ng.IPromise<{}>> but it should be just ng.IPromise<{}>:
var tmp = this.$http.get('').then((result) => this.$q.defer().promise);
2014-07-02 18:17:13 +02:00
John Reilly
70c5d14922
Merge pull request #2445 from johnnyreilly/master
...
AngularJS: Bit more JSDoc
2014-07-02 14:25:20 +01:00
John Reilly
5688be06cc
AngularJS: Bit more JSDoc
...
And corrected parameter name
2014-07-02 14:04:31 +01:00
John Reilly
fba318ff91
Merge pull request #2444 from johnnyreilly/master
...
AngularJS: Some JSDoc love
2014-07-02 13:48:43 +01:00
John Reilly
0beed153ed
AngularJS: Some JSDoc love
2014-07-02 13:43:43 +01:00
Spencer Williams
55731eb211
Test for IIntervalService#flush
2014-06-24 12:56:40 -04:00
Spencer Williams
aa2b85affb
Added definition for $interval.flush([millis])
...
ngMock's $interval includes a flush method that takes an optional maximum number of milliseconds to advance the interval, and returns the number of milliseconds that were actually advanced.
2014-06-24 11:51:35 -04:00
Greg Smith
666233c5a0
angular: Add isolateScope() to jqLite
2014-06-20 10:56:38 -05:00
Nathan Brown
72b9fbed7f
angular.d.ts: update test to use class for module
...
Converted the test module, 'http-auth-interceptor', to a class to
eliminate error on using anonymous type constructor.
2014-06-18 19:55:32 -07:00
Nathan Brown
ef0e9da858
angular.d.ts: new interface IServiceProviderFactory
...
Missed provider functions that return objects. Ensure that they also
implement ng.IServiceProvider.
2014-06-18 18:32:01 -07:00
Nathan Brown
3a36795eb2
angular.d.ts: new interface IDirectiveFactory
...
Adds intellisense when constructing directive objects
2014-06-18 18:13:14 -07:00
Nathan Brown
492d456a36
angular.d.ts: new interface IServiceProviderClass
...
Instead of IModule.provider simply accepting an Function for a class
constructor, use an interface to enforce the type of class.
2014-06-18 17:49:05 -07:00
Bart van der Schoor
3d64ea7395
added missing urls to some authors
...
fixed node urls
2014-06-18 23:31:35 +02:00
Bart van der Schoor
1d345f6c14
cleaned-up headers
2014-06-18 23:31:11 +02:00
Roland Zwaga
1a3ff12ab3
Fixed $setValidity() signature (thanx Basarat)
2014-06-14 17:57:21 +02:00
Roland Zwaga
96e986ba0b
Added $setValidity() method to IFormController.
...
IWindowService, IBrowserService and IRouteParamsService now all have a [key: string]: any declaration, so that code like $window['someProperty'] is allowed to compile.
2014-06-14 11:47:07 +02:00
vvakame
c77a3d0cd1
fix Visual Studio + CodePoint MS932 environment
2014-06-08 01:28:13 +09:00
John Reilly
f9be1d7b2d
Merge pull request #2298 from johnnyreilly/master
...
A little more JSDoc
2014-06-06 17:37:15 +01:00