JohnWeisz / TypedJSON

Typed JSON parsing and serializing for TypeScript that preserves type information.
MIT License
603 stars 64 forks source link

Fix reflected type check for Array/Set/Map #168

Closed MatthiasKunnen closed 3 years ago

MatthiasKunnen commented 3 years ago

Fixes #167.

The type check could not deal with complex types such as Array<string> | null. This example is only a problem with strictNullChecks enabled.