Commit Graph
9260 Commits
Author SHA1 Message Date
Marvin Luchs a013599373 Added missing plain() and clone() methods to Restangular's IElement and ICollection
restangularizeCollection() [1] and restangularizeElem() [2] are used to
create objects that implement IElement and ICollection respectively.
Both use restangularizeBase() [3] which adds the clone() and plane()
methods.

Therefore both IElement and ICollection should both implement clone()
and plain(). Additionally I added a generic variant of the already
existing plain() method in IElement to both IElement and ICollection.

[1]
https://github.com/mgonto/restangular/blob/master/src/restangular.js#L982
[2]
https://github.com/mgonto/restangular/blob/master/src/restangular.js#L951
[3]
https://github.com/mgonto/restangular/blob/master/src/restangular.js#L764
2015-04-29 13:38:43 +02:00
Marvin Luchs b9e995eb9b ICollectionPromise<T> should extend ng.IPromise with an array of T
ICollectionPromise<T> extends ng.IPromise<T> is the equivalent of
interface IPromise<T> extends ng.IPromise<T> for arrays of T. Therefore
it makes no sense to extend ng.IPromise with just T. Instead it has to
be an array of T.

The consequence of this bug can be observed when calling

Restangular.all('someEntity').getList<SomeEntity>().then((entities) =>
{...})

In this case the TypeScript compiler handles entities as SomeEntity, not
SomeEntity[].
2015-04-29 10:09:09 +02:00
Marvin Luchs cc0537a0ac "parent" argument of Restangular.service() should be optional
The documentation as well as the actual source code of Restangular
define the parent argument of Restangular.service(route, parent) as
optional:

https://github.com/mgonto/restangular#decoupled-restangular-service

function toService(route, parent) {
[...]
var collection = (parent || service).all(route);
2015-04-27 13:01:12 +02:00
Masahiro Wakame 00e7f3fede Merge pull request #4194 from stephenlautier/master
Added knockout.punches
2015-04-26 18:57:07 +09:00
stephen.lautier 26b98beb60 Merge branch 'master' of https://github.com/borisyankov/DefinitelyTyped 2015-04-25 12:57:38 +02:00
stephen.lautier 4c3555871f removed urijs 2015-04-25 12:46:56 +02:00
stephen.lautier 0e75ece1a4 added knockout.punches-tests + headers to type definitions 2015-04-25 12:29:03 +02:00
Masahiro Wakame 61d066fef5 Merge pull request #4189 from mtraynham/colorbrewer
Colorbrewer definition
2015-04-25 14:49:47 +09:00
Masahiro Wakame b18e9cb0c3 Merge pull request #4015 from gruppe-adler/restify-fix-httperrors
fix restify error classes
2015-04-25 14:45:59 +09:00
Masahiro Wakame 8cdf5075ab Merge pull request #4159 from ggarek/feature/react-drag-event
feat(react): add DragEvent
2015-04-25 14:42:10 +09:00
Matt Traynham ffc6161633 Fix tests. 'const' not available 2015-04-24 14:17:17 -04:00
Matt Traynham 94df0f9041 Colorbrewer definition 2015-04-24 14:08:07 -04:00
Horiuchi_H 575d70adca Merge pull request #4187 from bilou84/patch-2
convert-source-map: Remove all implicit any
2015-04-24 23:15:57 +09:00
bilou84 3f4eb92f38 convert-source-map: Remove all implicit any 2015-04-24 12:48:44 +02:00
Horiuchi_H de18109f44 Merge pull request #4185 from dfahlander/master
Added dexie.d.ts
2015-04-24 09:17:33 +09:00
Horiuchi_H cc22b1594e Merge pull request #4184 from adidahiya/drop
Add 'element' and 'tether' to Drop typings
2015-04-24 09:15:27 +09:00
Horiuchi_H 583c1524ac Merge pull request #4183 from ggarek/feature/sequelize-belongs-to-many
feat(sequelize): add belongsToMany definition
2015-04-24 09:14:36 +09:00
David Fahlander 8acdd6fc7d Fixed errors from npm test 2015-04-23 22:52:51 +02:00
David Fahlander 5850b78734 Added dexie.d.ts 2015-04-23 22:25:49 +02:00
Adi Dahiya 391ff639b1 Add 'element' and 'tether' to Drop typings 2015-04-23 14:11:09 -04:00
Igor Ovsiannikov d72fa373ae feat(sequelize): add belongsToMany definition 2015-04-23 19:22:48 +03:00
John Reilly 51d426745a Merge pull request #4160 from rdennis/master
jQuery failsafe syntax
2015-04-23 16:22:06 +01:00
Robert Dennis dd393c9e0f Add tests for jQuery failsafe syntax 2015-04-23 10:12:44 -04:00
Horiuchi_H caee0398cb Merge pull request #4181 from damianog/master
added controllerAs property to modal service settings
2015-04-23 18:34:16 +09:00
Horiuchi_H 0a67fb5558 Merge pull request #4180 from Nemo157/node-uuid-buffers
Fix return types of UUID when a buffer is passed in
2015-04-23 18:32:23 +09:00
Damiano bbd0677ca3 added controllerAs property to modal service settings 2015-04-23 09:19:07 +02:00
Wim Looman fe695e9235 Make options values optional 2015-04-23 12:19:52 +12:00
Wim Looman b0253bbce0 Fix return types of UUID when a buffer is passed in 2015-04-23 12:13:11 +12:00
Igor Ovsiannikov 39d3517c6f feat(react): add DragEvent to react-addons.d.ts 2015-04-22 21:38:28 +03:00
vvakame 25da006de5 update CONTRIBUTORS.md 2015-04-23 00:46:17 +09:00
Masahiro Wakame 5f951b5fad Merge pull request #4178 from borisyankov/add-json-patch
add json-patch
2015-04-23 00:45:38 +09:00
vvakame 5b473fd078 add json-patch 2015-04-23 00:42:20 +09:00
Masahiro Wakame cfc5ba68ca Merge pull request #4025 from pocesar/mandrill
mandrill api
2015-04-23 00:23:16 +09:00
Masahiro Wakame b5e3e0063e Merge pull request #4176 from pocesar/angular-ui-bootstrap
suggested edit for angular-ui-bootstrap
2015-04-23 00:13:41 +09:00
Masahiro Wakame d0bd4d72cb Merge pull request #4129 from jasonswearingen/push
new typings: sprintf-js, json5, dsv.  commonjs support for paralleljs
2015-04-23 00:08:09 +09:00
Masahiro Wakame f9c91312dd Merge pull request #4166 from mjurisic/angular-wizard
add definitions for angular-wizard
2015-04-22 23:59:36 +09:00
Masahiro Wakame f93cb523e4 Merge pull request #4157 from musicist288/decimal-js
Decimal js
2015-04-22 23:57:27 +09:00
Masahiro Wakame b4bcd5a9d3 Merge pull request #4149 from Maks3w/feature/hal-links
[HAL] Link object
2015-04-22 23:53:53 +09:00
Masahiro Wakame 2e91d910e7 Merge pull request #4122 from musicist288/leaflet-latlng-literals
Leaflet: Adding LatLngExpress and LatLngBounds expression types
2015-04-22 23:52:49 +09:00
Masahiro Wakame ca1a55e641 Merge pull request #4162 from jpevarnek/chrome-windows-getting
Add missing functions for chrome windows api
2015-04-22 23:50:14 +09:00
Masahiro Wakame 29c7e5d967 Merge pull request #4158 from hansrwindhoff/master
typing for Arbitrary Delimiters
2015-04-22 23:42:59 +09:00
Masahiro Wakame 9c55102580 Merge pull request #4125 from thmiceli/custom-error-generator
Added type definitions for module custom-error-generator
2015-04-22 23:41:01 +09:00
Paulo Cesar 82f2b3b74b suggested edit 2015-04-22 10:28:45 -03:00
Horiuchi_H 6b19a967ef Merge pull request #4172 from adidahiya/drop
Update drop typings for Drop v0.5.7
2015-04-22 17:24:26 +09:00
Horiuchi_H 4b7b9a0317 Merge pull request #4171 from rhencke/buffers
Add type definitions for buffers.
2015-04-22 17:22:35 +09:00
Horiuchi_H d8d2f78cce Merge pull request #4168 from JacobDanton/master
Updating express-validator definition and adding test
2015-04-22 17:18:21 +09:00
Horiuchi_H 185b8d77e0 Merge pull request #4167 from armorik83/type-name
add type-name.d.ts
2015-04-22 17:16:46 +09:00
Adi Dahiya a585282c8a Update drop typings for Drop v0.5.7 2015-04-21 20:03:50 -04:00
Robert Hencke 77ee228d58 Add type definitions for buffers. 2015-04-21 19:39:07 -04:00
Marko Jurisic a1944957c6 Fixed tests 2015-04-21 22:41:07 +02:00