You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
Activity
DZakh commentedon 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 commentedon Aug 20, 2024
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 commentedon Mar 7, 2025
I think that genType got fixed with rescript-lang/rescript/pull/7285, can you confirm @cknitt @zth ?
cknitt commentedon Mar 8, 2025
@tsnobip At least partially - there is a test for
Promise.t
here, but not forJSON.t
: https://github.com/rescript-lang/rescript/blob/40c51a59c1cb04bdebfb4c302b1ede2a9101ebb0/tests/gentype_tests/typescript-react-example/src/Core.res#L29