File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -449,10 +449,10 @@ Tries to deserialize given JSON to a TypeScript object or array of objects.
449
449
450
450
The methods ` serialize()` and `deserialize()` will automatically detect the dimension of your param (either object or array ).
451
451
In case you would like to force ` json2typescript ` to use a specific way, you can use the following methods instead:
452
- - ` (object ) serializeObject(instance: object ) `
453
- - ` (object []) serializeArray(instanceArray: object []) `
454
- - ` (object ) deserializeObject(jsonObject: object , classReference: { new(): any }) `
455
- - ` (object []) deserializeArray(jsonArray: object [], classReference: { new(): any }) `
452
+ - ` (any ) serializeObject(instance: any ) `
453
+ - ` (any []) serializeArray(instanceArray: any []) `
454
+ - ` (any ) deserializeObject(jsonObject: any , classReference: { new(): any }) `
455
+ - ` (any []) deserializeArray(jsonArray: any [], classReference: { new(): any }) `
456
456
457
457
>
458
458
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ export class JsonConvert {
394
394
*
395
395
* @throws throws an expection in case of failure
396
396
*/
397
- private serializeObject_loopProperty ( instance : any , classPropertyName : string , json : Object ) : void {
397
+ private serializeObject_loopProperty ( instance : any , classPropertyName : string , json : any ) : void {
398
398
399
399
// Get the mapping array
400
400
let mapping = instance [ Settings . MAPPING_PROPERTY ] ;
@@ -456,7 +456,7 @@ export class JsonConvert {
456
456
*
457
457
* @throws throws an expection in case of failure
458
458
*/
459
- private deserializeObject_loopProperty ( instance : any , classPropertyName : string , json : Object ) : void {
459
+ private deserializeObject_loopProperty ( instance : any , classPropertyName : string , json : any ) : void {
460
460
461
461
// Get the mapping array
462
462
let mapping = instance [ Settings . MAPPING_PROPERTY ] ;
You can’t perform that action at this time.
0 commit comments