File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -487,15 +487,15 @@ The default is `PropertyMatchingRule.CASE_STRICT`.
487
487
488
488
#### Serializing (TypeScript to JSON )
489
489
490
- `(any ) serialize (data : any )`
490
+ `(any ) serialize (data : T | T [] )`
491
491
492
492
Tries to serialize a TypeScript object or array of objects to JSON .
493
493
494
494
> Tip : The return value is not a string . In case you need a string as result , use `JSON .stringify ()` after calling the serialize method .
495
495
496
496
#### Deserializing (JSON to TypeScript )
497
497
498
- `(any ) deserialize (json : any , classReference : { new (): T | T [] })`
498
+ `(T | T [] ) deserialize (json : any , classReference : { new (): T | T [] })`
499
499
500
500
Tries to deserialize given JSON to a TypeScript object or array of objects.
501
501
You can’t perform that action at this time.
0 commit comments