Skip to content
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 bindings for Core Library #242

Open
PritishBudhiraja opened this issue Aug 20, 2024 · 4 comments
Open

Gentype bindings for Core Library #242

PritishBudhiraja opened this issue Aug 20, 2024 · 4 comments

Comments

@PritishBudhiraja
Copy link

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

@DZakh
Copy link
Contributor

DZakh commented Aug 20, 2024

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
Copy link
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
Copy link
Contributor

tsnobip commented Mar 7, 2025

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

@cknitt
Copy link
Member

cknitt commented Mar 8, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants