Commit Graph

223 Commits

Author SHA1 Message Date
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
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
Audrey
df4798c0f9 Include type definition for $watchGroup
https://docs.angularjs.org/api/ng/type/$rootScope.Scope
2014-05-20 17:11:12 -04:00
vvakame
186dec970c Revert "Merge pull request #2213 from kostaad/patch-1" refs #2213
This reverts commit 16bdee388e, reversing
changes made to 68bf220ed5.
2014-05-20 17:26:03 +09:00
Masahiro Wakame
16bdee388e Merge pull request #2213 from kostaad/patch-1
allow angular.d.ts to be imported using AMD
2014-05-20 17:23:20 +09:00
Masahiro Wakame
b2526eb8ab Merge pull request #2205 from dmitri-gb/patch-1
Update angular.d.ts
2014-05-20 16:52:14 +09:00
kostaad
d3f3d9839f Update angular.d.ts 2014-05-18 22:26:35 -04:00
kostaad
146af7e4d3 allow angular.d.ts to be imported using AMD
currently if you do 
import angular = require("angular"); 
tsc will throw 2071 - Unable to resolve external module 'angular'
this 
declare module 'angular'{
    export var angular:ng.IAngularStatic;
}
declares such a module.
2014-05-18 21:56:20 -04:00
dmitri-gb
25fe7f0a13 Fix method signature in angular.d.ts 2014-05-17 17:27:27 +03:00
dmitri-gb
ca93622f0a Update angular.d.ts
Add aHrefSanitizationWhitelist and imgSrcSanitizationWhitelist to ICompileService
2014-05-17 16:57:37 +03:00
damianog
248ce05b59 Update angular.d.ts missing statusText property
On IHttpPromiseCallbackArg added missing statusText property.

From angular's API

    data – {string|Object} – The response body transformed with the transform functions.
    status – {number} – HTTP status code of the response.
    headers – {function([headerName])} – Header getter function.
    config – {Object} – The configuration object that was used to generate the request.
    statusText – {string} – HTTP status text of the response.
2014-05-14 11:51:29 +02:00
Masahiro Wakame
c2742055f6 Merge pull request #2005 from miffels/master
Enhanced call interface definitions
2014-05-08 18:02:55 +09:00
DamianEdwards
e7308ef0ff Added definition in Angular for $logProvider (ILogProvider)
- #1787
2014-05-05 14:19:38 -07:00
Basarat Ali Syed
a821755ea0 Update angular.d.ts
closes #2028
2014-04-12 21:26:10 +10:00
miffels
1efaca2279 Fixing array call promise inconsistency (thanks @jackdolabany) and adding tests 2014-04-08 19:47:20 +02:00
Aidiakapi
cbdaec6beb fix(angularjs): make Function.$inject optional
The $inject member of the global Function interface should be optional, to be consistent with actual functions.
2014-04-08 17:32:00 +02:00
miffels
fffce8af7d Simplifying instance API and adding some explanatory comments 2014-04-08 14:15:34 +02:00
miffels
f037b84665 Fixing array interface and tests and adding humble co-author note 2014-04-08 13:46:34 +02:00
miffels
d98910416f Adjusting type angular.resource type definitions and tests to better reflect actual interface (particularly promises) 2014-04-08 12:05:23 +02:00
Masahiro Wakame
3de1c2c20e Merge pull request #1875 from scottmcarthur/patch-2
angular.d.ts IDocumentService extends IAugmentedJQuery
2014-03-19 19:42:16 +09:00
Scott McArthur
b6a08def3b angular.d.ts IDocumentService extends IAugmentedJQuery
Updated IDocumentService to extend IAugmentedJQuery rather than Document. As per the API (http://docs.angularjs.org/api/ng.$document) it provides "A jQuery or jqLite wrapper for the browser's window.document object."
2014-03-18 22:36:53 +00:00
Scott McArthur
f8d7eee419 Added new() to IResourceClass
Added `new(dataOrParams? : any) : T;` to `IResourceClass<T>` to allow creation of a new instance of the resource using the `new` keyword, which is required to create a new resource object of type `T`. 

In the [AngularJS documentation example](http://docs.angularjs.org/api/ngResource/service/$resource) this change would allow for line 27 `new CreditCard({number:'0123'});` where `CreditCard` is `IResourceClass<CreditCard>`. Without this change we get `error TS2083: Invalid 'new' expression.` when new-ing the resource.
2014-03-16 17:15:47 +00:00
unknown
e7396efb0c Change my tabs to spaces 2014-03-14 11:19:32 -04:00
unknown
bd9d835aa7 Fix $q.when definition 2014-03-14 11:13:07 -04:00
Alex Puchkov
ec9eac3e8b Fix angularjs/angular-route.d.ts
IRoute.caseInsensitiveMatch was missing
2014-02-27 11:22:04 -05:00
satoru kimura
3747c3ba05 fix angularjs/angular-resource.d.ts for typescript 0.9.7. 2014-02-27 12:31:50 +09:00