rescript-compiler
rescript-compiler copied to clipboard
GenType: Issue typing JSON.t and Dict.t from RescriptCore
I encountered this issue while trying to migrate from 10.1.4
to 11.0.0
.
These are the possible imports
depending on how the module was used (more in reproduction repo):
import type {t as Core__JSON_t} from '@rescript/core/src/Core__JSON.gen';
import type {t as JSON_t} from './JSON.gen';
See the reproduction repo here.
Edit:
Do I need to create a shim for them?
Based on this PR and this forum post, I thought it might not be needed, at least for Dict.t
. I also, tried creating one for the JSON, but it didn't work.
Found this comment from :
While they're not as high pri as "Gentype is broken on Core", sill good to document them.
Does it mean they are not supported?