We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5478ce2 commit b6a8bf8Copy full SHA for b6a8bf8
README.md
@@ -487,15 +487,15 @@ The default is `PropertyMatchingRule.CASE_STRICT`.
487
488
#### Serializing (TypeScript to JSON)
489
490
-`(any) serialize(data: any)`
+`(any) serialize(data: T | T[])`
491
492
Tries to serialize a TypeScript object or array of objects to JSON.
493
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
496
#### Deserializing (JSON to TypeScript)
497
498
-`(any) deserialize(json: any, classReference: { new(): T | T[] })`
+`(T | T[]) deserialize(json: any, classReference: { new(): T | T[] })`
499
500
Tries to deserialize given JSON to a TypeScript object or array of objects.
501
0 commit comments