Commit Graph

29 Commits

Author SHA1 Message Date
Dmytro Nemoga
45fc24faad Update IActionDescriptor accordingly to official documentation 2015-10-15 19:10:37 +03:00
Maxime Fabre
b58db06e15 Update Angular module in angular-resource 2015-06-18 17:14:16 +02:00
Bogdan I. Bursuc
d9b2f58d68 IResourceServiceProvider 2015-06-01 09:27:43 +03:00
Bogdan I. Bursuc
c32e1df7c5 IActionDescriptor can have a url override also 2015-05-31 10:32:28 +03:00
Henrik Huttunen
bba7d848ef reference angular module using prefix "angular", not "ng" 2015-04-15 10:40:21 +03:00
Basarat Ali Syed
eb66c47bd2 Update angular-resource.d.ts 2015-03-12 11:49:21 +11:00
Basarat Ali Syed
91987d84ad Update angular-resource.d.ts 2015-03-12 11:41:36 +11: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
Bart van der Schoor
1d345f6c14 cleaned-up headers 2014-06-18 23:31:11 +02:00
miffels
1efaca2279 Fixing array call promise inconsistency (thanks @jackdolabany) and adding tests 2014-04-08 19:47:20 +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
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
satoru kimura
3747c3ba05 fix angularjs/angular-resource.d.ts for typescript 0.9.7. 2014-02-27 12:31:50 +09: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
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
Jonathan Park
41a7127404 updating angular resource and injector definitions 2013-12-16 17:17:39 -08: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
John Emau
67d306f4e9 reverted accidental removal of author comment 2013-10-24 07:04:15 -07:00
John Emau
d5d2fe59d6 fixed angular version labels in comments 2013-10-23 15:03:09 -07:00
Jared Reynolds
604c5b5d6f Added tests for angular resource type definitions 2013-10-23 14:55:46 -07:00
Jonathan Park
683e94d8d8 Adding angular 1.2 definitions
Conflicts:
	angularjs/angular-mocks.d.ts
2013-10-23 14:55:46 -07:00
jraymakers
0d35893c08 Replace bool with boolean in angular 2013-07-25 22:56:10 -07:00
David Iffland
dfcb5aa038 Added declare modifier to angular-resource 2013-06-19 12:00:23 -05:00
Jason Swearingen
1886a6ca66 add interface+docs around resource factory
re following official "Wire up a BAckend" demo:
http://angularjs.org/#mongolab-js
2013-02-13 13:27:06 +07:00
Boris Yankov
209d95071a Update reference paths 2013-01-17 20:03:30 +02:00
Boris Yankov
c98eebb137 Rename all definition files, remove versions 2013-01-17 17:17:27 +02:00