gcanti / io-ts-types

A collection of codecs and combinators for use with io-ts
https://gcanti.github.io/io-ts-types/
MIT License
311 stars 40 forks source link

Fix TS2440 in 0.4.x branch when using TypeScript 3.7 #119

Closed YBogomolov closed 4 years ago

YBogomolov commented 4 years ago

Motivation:

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.

gcanti commented 4 years ago

Thanks @YBogomolov, released as 0.4.8