File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ Tries to serialize a TypeScript object or array of objects to JSON.
495495
496496#### Deserializing (JSON to TypeScript )
497497
498- `(any ) deserialize (json : any , classReference : { new (): any })`
498+ `(any ) deserialize (json : any , classReference : { new (): T | T [] })`
499499
500500Tries to deserialize given JSON to a TypeScript object or array of objects.
501501
@@ -505,10 +505,10 @@ Tries to deserialize given JSON to a TypeScript object or array of objects.
505505
506506The methods ` serialize()` and `deserialize()` will automatically detect the dimension of your param (either object or array ).
507507In case you would like to force ` json2typescript ` to use a specific way, you can use the following methods instead:
508- - ` (any) serializeObject(instance: any ) `
509- - ` (any[]) serializeArray(instanceArray: any []) `
510- - ` (any ) deserializeObject(jsonObject: any, classReference: { new(): any }) `
511- - ` (any []) deserializeArray(jsonArray: any[], classReference: { new(): any }) `
508+ - ` (any) serializeObject(instance: T ) `
509+ - ` (any[]) serializeArray(instanceArray: T []) `
510+ - ` (T ) deserializeObject(jsonObject: any, classReference: { new(): T }) `
511+ - ` (T []) deserializeArray(jsonArray: any[], classReference: { new(): T }) `
512512
513513
514514
You can’t perform that action at this time.
0 commit comments