Commit Graph
41 Commits
Author SHA1 Message Date
Ken HowardandMasahiro Wakame e684481e0c Return typed definition from toJSON method (#8859)
* Return typed definition from toJSON method

* Test toJSON returns IMyResource
2016-04-12 23:22:09 +09:00
vvakame 14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
Masahiro Wakame 8a88c85be0 Merge pull request #8150 from mmiszy/angular
Update AngularJS to 1.5
2016-03-10 22:26:45 +09:00
Andrey Kurdyumov 63addbc966 Specify interface for the resource methods
This allows remove redundancy when specify other methods for the resource
2016-03-04 01:06:31 +06:00
Michal Miszczyszyn 65347efe70 Update AngularJS to 1.5 2016-02-20 21:54:16 +01:00
Masahiro Wakame 621f12c660 Merge pull request #7206 from martinmcwhorter/master
Add commonJS support to angular-resource <eom>
2015-12-23 15:11:58 +09:00
Martin McWhorter 09fa17a56f Add commonJS support to angular-resource 2015-12-15 10:40:04 +00:00
Masahiro Wakame a3aa7a28ac Merge pull request #7071 from KhodeN/patch-7
Update angular-resource.d.ts
2015-12-12 23:56:57 +09:00
Artem Berezin 79e875c956 Update angular-resource.d.ts 2015-12-11 11:13:32 +09:00
Artem Berezin fad091f943 Update angular-resource.d.ts
fix IResourceArray. It is of array of IResource<T>, not array of just T
2015-12-06 17:45:33 +09:00
Long Yinan 0ab253f326 fix(angularjs): add toJSON method 2015-12-03 14:48:27 +08:00
vvakame 622dad055a fix angularjs/angular-resource.d.ts 2015-11-03 00:54:33 +09:00
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 ReynoldsandJohn Emau 604c5b5d6f Added tests for angular resource type definitions 2013-10-23 14:55:46 -07:00
Jonathan ParkandJohn Emau 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