-
Notifications
You must be signed in to change notification settings - Fork 465
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
GenType does not handle JSON types in Core properly #7157
Comments
Might be related to #6563 |
unfortunately, given typescript does not plan to have a JSON type, we'll have to advise users to create a shim for the JSON type for now. |
What type should be exported ideally, given that TS does not have a builtin? |
|
I guess ideally it would use something like that: type Json =
| string
| number
| boolean
| null
| Json[]
| { [key: string]: Json }; but you can't define this inline given it's a recursive type. |
* Fix issue with gentype and stdlib json. Fixes #7157 * Allow both `Stdlib.X` and `Stdlib_X`. * format * Update CHANGELOG.md * Update CHANGELOG.md
Sample project:
https://github.com/jmagaram/functors
Look at file
Simple.res
with the code:The TypeScript is...
And the error on the second line is...
The text was updated successfully, but these errors were encountered: