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