When compiling TS 3.7 project with io-ts-types of 0.4.x branch, the compiler complains about TS2440 error:
ERROR in [at-loader] ./node_modules/io-ts-types/lib/JSON/JSONFromString.d.ts:2:10
TS2440: Import declaration conflicts with local declaration of 'JSONType'.
This fix re-exports existing JSONType type instead of declaring and exporting an alias.
Motivation:
When compiling TS 3.7 project with
io-ts-types
of 0.4.x branch, the compiler complains about TS2440 error:This fix re-exports existing
JSONType
type instead of declaring and exporting an alias.