Skip to content

Commit b6a8bf8

Browse files
Fixed more errors in ReadMe
1 parent 5478ce2 commit b6a8bf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -487,15 +487,15 @@ The default is `PropertyMatchingRule.CASE_STRICT`.
487487

488488
#### Serializing (TypeScript to JSON)
489489

490-
`(any) serialize(data: any)`
490+
`(any) serialize(data: T | T[])`
491491

492492
Tries to serialize a TypeScript object or array of objects to JSON.
493493

494494
> Tip: The return value is not a string. In case you need a string as result, use `JSON.stringify()` after calling the serialize method.
495495

496496
#### Deserializing (JSON to TypeScript)
497497

498-
`(any) deserialize(json: any, classReference: { new(): T | T[] })`
498+
`(T | T[]) deserialize(json: any, classReference: { new(): T | T[] })`
499499
500500
Tries to deserialize given JSON to a TypeScript object or array of objects.
501501

0 commit comments

Comments
 (0)