appvision-gmbh / json2typescript

Map JSON to a TypeScript class with secure type checking!
https://www.npmjs.com/package/json2typescript
MIT License
278 stars 55 forks source link

Compilation issues with TypeScript < 3.7 #131

Closed andreas-aeschlimann closed 4 years ago

andreas-aeschlimann commented 4 years ago

Due to the TypeScript upgrade in json2typescript 1.3.0, it generates declaration (d.ts) files which are incompatible with older TypeScript versions. Angular <9 does not support the newest TypeScript version, thus many users might run into this bug.

We should implement https://github.com/sandersn/downlevel-dts in order to provide more compatible declaration files.