rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

GenType: Issue typing JSON.t and Dict.t from RescriptCore

Open reck753 opened this issue 1 year ago • 1 comments

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.

reck753 avatar Jan 12 '24 22:01 reck753

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?

reck753 avatar Jan 12 '24 23:01 reck753