Tips to create ReScript compilation target

Hello,

I love Kotlin because of its simplicity and Multiplatform that allows me to write Native applications (iOS, Android, Web, Desktop) while sharing business logic among them.
I’m also a proponent of ReScript on the front for web applications.
There is a JavaScript and Typescript compilation target but no ReScript target.
I’d like to contribute and create a ReScript target. Where to start? Could you provide initial guidance?
Or someone I could reach out to?

Regards

There is no TypeScript compilation target. There is only an option to create TypeScript typings for the generated code. I would start with from gradle binaries.library() flag in gradle plugin which is used for typescript bindings generation.

1 Like

I’m not familiar with ReScript, but it looks like there are tools for ReScript <-> TS conversions Introduction | ReScript GenType

Using such tools as a post-processor of our generated .d.ts files might be the easiest way.

1 Like