Skip to content

Commit

Permalink
Changed object types to any
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-aeschlimann committed Jul 23, 2017
1 parent 3925769 commit 0cc38b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,10 @@ Tries to deserialize given JSON to a TypeScript object or array of objects.
The methods `serialize()` and `deserialize()` will automatically detect the dimension of your param (either object or array).
In case you would like to force `json2typescript` to use a specific way, you can use the following methods instead:
- `(object) serializeObject(instance: object)`
- `(object[]) serializeArray(instanceArray: object[])`
- `(object) deserializeObject(jsonObject: object, classReference: { new(): any })`
- `(object[]) deserializeArray(jsonArray: object[], classReference: { new(): any })`
- `(any) serializeObject(instance: any)`
- `(any[]) serializeArray(instanceArray: any[])`
- `(any) deserializeObject(jsonObject: any, classReference: { new(): any })`
- `(any[]) deserializeArray(jsonArray: any[], classReference: { new(): any })`

>

Expand Down
4 changes: 2 additions & 2 deletions src/json2typescript/json-convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export class JsonConvert {
*
* @throws throws an expection in case of failure
*/
private serializeObject_loopProperty(instance: any, classPropertyName: string, json: Object): void {
private serializeObject_loopProperty(instance: any, classPropertyName: string, json: any): void {

// Get the mapping array
let mapping = instance[Settings.MAPPING_PROPERTY];
Expand Down Expand Up @@ -456,7 +456,7 @@ export class JsonConvert {
*
* @throws throws an expection in case of failure
*/
private deserializeObject_loopProperty(instance: any, classPropertyName: string, json: Object): void {
private deserializeObject_loopProperty(instance: any, classPropertyName: string, json: any): void {

// Get the mapping array
let mapping = instance[Settings.MAPPING_PROPERTY];
Expand Down

0 comments on commit 0cc38b6

Please sign in to comment.