Commit Graph

538 Commits

Author SHA1 Message Date
John Reilly
5e2826c8a5 Update angular.d.ts - JSDoc-ed the $cacheFactory 2015-05-20 10:39:52 +01:00
John Reilly
fefe9f1de6 angular.d.ts - added JSDoc for $broadcast and $emit 2015-05-15 09:30:41 +01:00
chr22
c6f469b360 Update namespace from ng -> angular 2015-05-08 15:47:09 +02:00
aciccarello
7576bf3119 Update to Angular 1.4 2015-04-27 17:00:04 -04:00
Masahiro Wakame
e7ef7d3204 Merge pull request #4116 from xi/fix-angular-headers
Fix IHttpPromiseCallbackArg.headers type
2015-04-15 23:58:38 +09:00
Tobias Bengfort
b01692175b Fix IHttpPromiseCallbackArg.headers type 2015-04-15 11:44:24 +02:00
Henrik Huttunen
2fc34672e8 reference angular module using prefix "angular", not "ng" 2015-04-15 11:05:40 +03:00
Henrik Huttunen
bba7d848ef reference angular module using prefix "angular", not "ng" 2015-04-15 10:40:21 +03:00
Matt Podsiadlo
dc17c1cf2f Added a definition for IBrowserService.defer 2015-04-13 10:52:41 +02:00
Basarat Ali Syed
02a93db66a Merge pull request #3987 from rafw87/angularjs
Update angular.d.ts - Fix for $q.all() method
2015-03-31 09:48:17 +11:00
Ricardo Franco
cfb41c331e fix missing module 'ng' 2015-03-30 18:17:40 -03:00
rafw87
7c0ed32587 Update angular.d.ts
$q.all() - separate overloads for array and hash version
2015-03-29 00:48:59 +01:00
Chris Barr
d2d2a6586b Adding params for Angular JS animation options
According to [The ngAnimate Documentation](https://docs.angularjs.org/api/ngAnimate/#applying-directive-specific-styles-to-an-animation it), it's possible to optionally specify animation `to` and `from` prameters in an object that can optionally be passed in to `animate` `enter` `leave` `addClass` `removeClass` and `setClass`
2015-03-23 12:30:51 -04:00
vvakame
96b97cf462 add html5mode definitions on ILocationProvider 2015-03-21 01:24:23 +09:00
vvakame
32194eaa6f add commonjs module declarations to angular 2015-03-17 22:24:15 +09:00
Basarat Ali Syed
f76832c80d Create angular-amd-tests.ts 2015-03-12 14:35:30 +11:00
Basarat Ali Syed
eb66c47bd2 Update angular-resource.d.ts 2015-03-12 11:49:21 +11:00
Basarat Ali Syed
8b10d4fbb0 Update angular-mocks.d.ts 2015-03-12 11:43:05 +11:00
Basarat Ali Syed
b7b20944a6 Update angular-cookies.d.ts 2015-03-12 11:41:54 +11:00
Basarat Ali Syed
91987d84ad Update angular-resource.d.ts 2015-03-12 11:41:36 +11:00
Basarat Ali Syed
92ee9817d0 Update angular-sanitize.d.ts 2015-03-12 11:41:19 +11:00
Basarat Ali Syed
1571e6b394 Update angular-animate.d.ts 2015-03-12 11:40:58 +11:00
Basarat Ali Syed
71a138ec5e Update angular-route.d.ts 2015-03-12 11:40:36 +11:00
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
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
Masahiro Wakame
859d88a644 Merge pull request #1687 from michelsalib/angular-animate
Adding angular $animate definition
2014-02-18 11:39:14 +09:00
Scott McArthur
4d64913cdb angular.d.ts Annotated spelt incorrectly
Fixed spelling mistake in parameter names. Changed all occurrences of `Annotaded` to `Annotated`
2014-02-15 20:37:05 +00:00
scottmcarthur
1195fc6b5e Added $promise & $resolved properties
[ngResource.$resource](http://docs.angularjs.org/api/ngResource.$resource) defines a `$promise` property and a `$resolve` property on the Resource.
2014-02-15 09:06:02 +00:00
Michel Salib
59263e826b Add missing return types 2014-02-12 15:55:41 +01:00
Michel Salib
62f9fa8fda Adding angular $animate definition 2014-02-12 14:50:21 +01:00
Michel Salib
e4f5bd3738 Add some definitions to angular scenario 2014-02-07 11:17:24 +01:00
Matt Jibson
5b07c2c85e Correct ICustomScope reference 2014-01-31 16:37:56 -05:00
Basarat Ali Syed
a981700446 Merge pull request #1650 from JohnKurlak/master
Added has() method to ng.auto.IInjectorService
2014-01-31 04:49:10 -08:00
basarat
7ddbd98419 angularjs revert marking arguments for link function as optional 2014-01-31 23:45:44 +11:00
John Kurlak
05ec01901c Added has() method to auto.IInjectorService
Angular added the has() method to $injector in version 1.2 (see: https://github.com/angular/angular.js/blob/g3_v1_2/src/auto/injector.js)
2014-01-30 11:30:35 -08:00
Michael Cox
0645d5c6f5 AngularJS: make IDirective.link() arguments optional 2014-01-27 16:52:01 +00:00
Michael Cox
2806d81cae AngularJS: Added promise hash signature to .all() 2014-01-27 14:22:51 +00:00
Bart van der Schoor
5263434c20 added/fixed few headers
https://github.com/borisyankov/DefinitelyTyped/issues/1570

cleaned up some more, mostly urls and typos
2014-01-25 01:08:33 +01:00
Michel Salib
9f86b20f3e Angular IModule::provider can accept a provider object as second argument 2014-01-17 15:40:23 +01:00
Basarat Syed
7a44f44079 Revert "added promise chaining for http"
This reverts commit ef8d6d25e8. Needs more tests
2014-01-15 16:47:45 +11:00
Basarat Ali Syed
ef8d6d25e8 added promise chaining for http
the type of variable num in below sample was not detected without this signature. 
```
var $http: ng.IHttpService;
declare function foo(): ng.IHttpPromise<number>;
declare function bar(): ng.IHttpPromise<string>;
$http.get('asdfsadf').then((resp) => foo()).then((bla) => bla.data).then((num) => num);
```
2014-01-15 16:25:09 +11:00
vvakame
be2633af53 Remove angularjs/angular-tests.ts.tscparams 2014-01-11 23:09:19 +09:00
jraymakers
f2afd8de95 angular: split ITranscludeFunction out of ITemplateLinkingFunction 2014-01-10 12:44:41 -08:00
jraymakers
90cf96b451 update optionality of arguments to ITemplateLinkingFunction 2014-01-09 16:01:48 -08:00
jraymakers
9ea31ba6c7 Merge remote-tracking branch 'upstream/master' 2014-01-08 09:49:17 -08:00
Semigradsky
1edf9b0d12 Restored part of file 2014-01-08 11:03:16 +03:00
jraymakers
6b7922e7e8 Merge remote-tracking branch 'upstream/master' 2014-01-07 22:32:27 -08:00
jraymakers
75357ab810 add missing semicolon in ICloneAttachFunction 2014-01-07 22:22:33 -08:00
jraymakers
ad7b08921b remove unnecessary comment in ITemplateLinkingFunction 2014-01-07 21:08:18 -08:00
jraymakers
3a82c7c52c add ? to scope in ITemplateLinkingFunction 2014-01-07 18:24:52 -08:00
Basarat Ali Syed
fb975ef47c update angular version in comment 2014-01-08 12:57:44 +11:00
jraymakers
aea6e0dab3 support optional scope on ITemplateLinkingFunction 2014-01-07 15:59:44 -08:00
Masahiro Wakame
bf8fc6fe38 Merge pull request #1493 from xt0rted/patch-2
angularjs: Add $parseProvider
2014-01-05 03:15:39 -08:00
vvakame
6ab4ffae2b Remove not required tscparams 2014-01-02 16:34:52 +09:00
Brian Surowiec
ad4009b296 angularjs: Add $parseProvider 2014-01-02 00:47:37 -05:00
Igor Oleinikov
f4a56aea3f angularjs: fixed another error in resource tests 2013-12-23 03:46:41 +04:00
Igor Oleinikov
723b48805e angularjs: fixed resource tests 2013-12-22 17:08:51 +04:00
Masahiro Wakame
f6a49f9442 Merge branch 'master' into switch-0.9.5
Conflicts:
	ember/ember.d.ts
2013-12-18 12:30:03 +09:00
Masahiro Wakame
8711419cbb Merge pull request #1447 from damianog/patch-6
Update angular-scenario.d.ts 'enter' lacks return-type annotation
2013-12-17 18:00:50 -08:00
John Emau
459e286cd0 added syntax highlighting 2013-12-16 19:17:47 -08:00
John Emau
a859e22699 added missing test for resource service factory and updated readme 2013-12-16 19:15:42 -08:00
John Emau
71e23deadd added tests for new angular-resource generics signatures 2013-12-16 19:03:37 -08:00
Jonathan Park
72cc261506 adding invoke inline annotated functions 2013-12-16 17:39:28 -08:00
Jonathan Park
41a7127404 updating angular resource and injector definitions 2013-12-16 17:17:39 -08:00
damianog
0e8a450390 Update angular-scenario.d.ts
'enter' lacks return-type annotation, implicitly has an 'any' return type
2013-12-13 19:49:11 +01:00
Masahiro Wakame
df0f590760 Merge branch 'master' into switch-0.9.5 2013-12-11 11:51:51 +09:00
Masahiro Wakame
ba98843480 Merge pull request #1418 from RomanoLindano/master
Angular scenario typings.
2013-12-10 18:30:51 -08:00
Romano Lindano
0f6f7db51c Angular scenario typings. 2013-12-10 14:56:31 +01:00
Igor Oleinikov
b3e31cb848 angularjs: fixed errors in angular-tests.ts related to switch on TS 0.9.5 2013-12-06 15:15:53 +04:00
Michel Salib
21a7c41386 IProviderService::factory supports also inline annotated functions 2013-11-28 12:57:34 +01:00
Michel Salib
038f6bcb64 IServiceProvider::$get can be array or function 2013-11-27 22:27:42 +01:00
Michel Salib
a59d261c8d Angular IServiceProvider::$get is injected
Actually the $get function is called via invoke.
2013-11-27 15:06:38 +01:00
Basarat Ali Syed
20655ae164 to kickoff nuget build 2013-11-20 11:42:55 +11:00
Ben Turner
62c4df6fcd Fix typo in comments
defile => define
2013-11-20 10:01:52 +11:00
basarat
9590d1e8f5 fixed path issues in 1.0 files. Verified that angular-scenario is still a part of angular dist : http://code.angularjs.org/1.2.1/ so left it inside angularjs folder 2013-11-19 21:46:01 +11:00
Basarat Syed
dfba1ce255 moved angular 1.0 and angular-scenario files to legacy folder 2013-11-19 17:34:55 +11:00
Basarat Ali Syed
40b93ee4a9 Merge pull request #1284 from vvakame/add-find-not-required-tscparams
infrastructure: remove not required tscparam files
2013-11-18 21:59:48 -08:00
Masahiro Wakame
1b28c3344b Removed not required .tscparams 2013-11-19 13:56:28 +09:00
John Emau
10603d7cec fix readme clean up missed in merge 2013-11-18 15:39:15 -08:00
John Emau
a5f133ec4f updating angular readme with new example of using angular resource definitions
Conflicts:
	angularjs/README.md
2013-11-18 15:36:26 -08:00
Basarat Ali Syed
2dbd46d87f angular : $http timeout can be number or promise
reference : https://github.com/angular/angular.js/issues/1159#issuecomment-19043323
2013-11-18 15:17:53 +11:00
John Emau
04c609c2a0 adding tests for angular sanitize 2013-11-13 15:38:47 -08:00
John Emau
54daea88b9 adding linky filter to ngSanitize 2013-11-13 14:28:12 -08:00
basarat
b6d875402f Catch and finally 2013-11-13 19:46:46 +11:00
basarat
ba8c8ffdf7 No unwrapping for notify callback (ofcourse) 2013-11-13 19:37:34 +11:00
basarat
12b39a17a0 For #1258 2013-11-13 17:39:09 +11:00
Michel Salib
079dfe6e92 Add missing angular scenario function
Added iit, xit and ddescribe.
2013-11-12 10:56:40 +01:00
John Emau
003030c295 Merge branch 'borisyankov-definitelytyped-master' into updating-angular-resource
Conflicts:
	angularjs/angular-resource-tests.ts
2013-11-11 12:52:38 -08:00
John Emau
9ad3c8740a removed IActionCall and changed query method to return an IResource array
Conflicts:
	angularjs/angular-resource-tests.ts
2013-11-11 09:58:41 -08:00
RupertAvery
16f8fd18dd SCE Services and Providers 2013-11-10 19:47:22 +08:00
RupertAvery
e3d4e2fd68 change bool to boolean 2013-11-10 17:13:43 +08:00
RupertAvery
417b93032f added Strict Contextual Escaping services and providers 2013-11-10 17:11:26 +08:00
hastebrot
6e39fe3652 Add; IntervalService to angular.d.ts 2013-11-04 13:28:40 +01:00
Ashwin Ramaswamy
4157d2bf00 type directive factory with Function type
- the existing type fails with the stricter 0.9.5 compiler
2013-11-01 14:56:56 -04:00
Georgios Diamantopoulos
793b8296f2 Added args param to scope.$eval 2013-10-31 15:59:20 +02:00
Georgios Diamantopoulos
15f9750043 Fixes in latest NG pkg
`IAttributes` definition made it impossible to use scoped attributes - see my comments
`scope.$eval` was missing locals argument
`IDirective.controller` made it impossible to use minify-safe array notation, had to switch back to `any`
`IDirective.require` can be both `string` or `string[]` so changed back to `any`.

This will all be so much better once we get union support in TS...
2013-10-29 12:09:34 +02:00
studiollama
107312a84b Added controllerAs to IRoute 2013-10-26 13:32:45 -07:00
Kenneth Kolstad
1bf0e657ee Add $addControl and $removeControl to IFormController 2013-10-25 02:39:36 -04:00
Jacob Boland
603d36d40c Reimplement earlier changes to header 2013-10-24 12:55:02 -07:00
Jacob Boland
f1f15ffd03 Fix parameter types which were actually variable names implicitly defined as any 2013-10-24 12:49:28 -07:00
John Emau
4d3715ca67 reverted accidental removal of author comment from angular-mocks.d.ts 2013-10-24 07:14:18 -07:00
John Emau
67d306f4e9 reverted accidental removal of author comment 2013-10-24 07:04:15 -07:00
John Emau
aed0b9670e updated angular readme to mention new ng.route module 2013-10-23 16:28:25 -07:00
John Emau
d5d2fe59d6 fixed angular version labels in comments 2013-10-23 15:03:09 -07:00
John Emau
912097ef16 adding missing tscparam files for needed angular files 2013-10-23 14:55:47 -07:00
John Emau
5078772afb fixing error in angular-1.0 tests 2013-10-23 14:55:47 -07:00
Jared Reynolds
9ba67fffd6 Updated angular IDirective for 1.2.0
Conflicts:
	angularjs/angular.d.ts
2013-10-23 14:55:47 -07:00
Jared Reynolds
604c5b5d6f Added tests for angular resource type definitions 2013-10-23 14:55:46 -07:00
Jacob Boland
c8881ff07b Add IAttributes tests 2013-10-23 14:55:46 -07:00
Jacob Boland
027c81a0b0 Add IAttributes members and comments 2013-10-23 14:55:46 -07:00