Skip to content

Gentype bindings for Core Library #242

@PritishBudhiraja

Description

@PritishBudhiraja

Hey,

I was trying to add @genTypes in my project and I'm encountering this issue in my project.

So it's trying to look for the *.gen.tsx file for the core libraries types.

Attaching screenshot for the same. This should have by default created the ./JSON.gen or ./Promise.gen files.

How to overcome this issue? Is there a way or any
Screenshot 2024-08-20 at 1 59 28 PM

Activity

DZakh

DZakh commented on Aug 20, 2024

@DZakh
Member

In rescript-schema, I solved it by publishing the package with .gen.ts files, containing the core types. There's no need to include types for functions.

PritishBudhiraja

PritishBudhiraja commented on Aug 20, 2024

@PritishBudhiraja
Author

Sure @DZakh .

But this will solve temp fix. Can we get like a proper fix in RescriptCore library and it should create the own gen.tsx files and we should be able to use that. Is the under discussion or in roadmap?

tsnobip

tsnobip commented on Mar 7, 2025

@tsnobip
Member

I think that genType got fixed with rescript-lang/rescript/pull/7285, can you confirm @cknitt @zth ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cknitt@tsnobip@DZakh@PritishBudhiraja

        Issue actions

          Gentype bindings for Core Library · Issue #242 · rescript-lang/rescript-core