-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON name conflicts with lib.es6.d.ts #8
Comments
ok
What do you mean? The
Found this microsoft/TypeScript#5711 |
@gcanti yeah, I know one have to fully annotate the type for its types names to be exported correctly. so one has to do the heavy thing: import { JSON as JSONType } from 'io-ts-types/lib/JSON/JSONFromString' |
Ah! Sorry, I didn't realize that :) |
great! |
Fix released |
@gcanti thanks a lot |
As a matter to help with auto import and the like it would be better to have a non conflicting name.
Maybe
JSONType
?io-ts-types/src/monocle-ts/StringJSONPrism.ts
Line 6 in d62c0a2
Also JSON is not exposed outside of the package and 'cannot be named'
The text was updated successfully, but these errors were encountered: