Skip to content

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

Closed as not planned
@reck753

Description

@reck753

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleOld issues that went stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions