Commit Graph

247 Commits

Author SHA1 Message Date
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
John Reilly
408d13e745 A little more JSDoc 2014-06-06 17:32:31 +01:00
John Reilly
3853c8f913 Merge pull request #2297 from johnnyreilly/master
Started JSDoc based on my own usage.
2014-06-06 17:11:50 +01:00
John Reilly
d165519611 Started JSDoc based on my own usage 2014-06-06 17:05:26 +01:00
John Reilly
8569dc2dc0 Merge pull request #2295 from johnnyreilly/master
A little JSDoc for angular-route.d.ts
2014-06-06 10:04:03 +01:00
John Reilly
aac5085bf1 A little JSDoc for angular-route.d.ts 2014-06-06 09:53:21 +01:00
vvakame
d2f30bc722 improve angularjs/angular.d.ts
change IScope to IRootScopeService
2014-06-05 10:58:32 +09:00
Masahiro Wakame
2f99fb7df2 Merge pull request #2241 from malixsys/patch-1
Added $root property of IScope
2014-06-05 10:55:17 +09:00
John Reilly
0b740a4d8f Switch config from any to IRequestShortcutConfig 2014-06-02 14:33:33 +01:00
John Reilly
2e030fa8c4 Added typing to IHttpService 2014-06-02 14:13:54 +01:00
Audrey
5a77a8a133 Update watchExpressions definition for $watchGroup
Per https://docs.angularjs.org/api/ng/type/$rootScope.Scope,
the watchExpressions is an array of string OR Function(scope).

Array.<string|Function(scope)>
2014-05-26 10:22:29 -04:00
Masahiro Wakame
c96231d8e4 Merge pull request #2240 from JeroMiya/angularMocksInjectOverload
angular.mock.inject overload taking array DI syntax
2014-05-26 11:27:54 +09:00
Jeremy Bell
479dd1442e fixed errors from --noImplicitAny option 2014-05-23 17:55:24 -04:00
M Alix
a3386842a6 Added $root property of IScope 2014-05-23 17:50:31 -04:00
Jeremy Bell
9e30ccf2e5 Added overload to angular.mock.inject function to allow array-style dependency injection, which the function supports. Added test excercising the overload. 2014-05-23 17:47:07 -04:00
Ryan Cavanaugh
72b92f2e37 Unify tabs/spaces 2014-05-21 14:26:23 -07:00
Ryan Cavanaugh
8959bcdc71 Manually specify generic type parameter so return expression types match 2014-05-21 14:25:49 -07:00
Masahiro Wakame
c1c3cc4469 Merge pull request #2219 from ngbrown/patch-1
Update angular-route.d.ts to set missing params
2014-05-21 15:54:29 +09:00
Nathan Brown
94967f9839 Update angular-route.d.ts to set missing params
Update angular-route.d.ts to set otherwise(params:IRoute)
2014-05-20 15:37:16 -07:00