rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

ts2buckle

Open bobzhang opened this issue 9 years ago • 4 comments

https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API using the typescript compiler to emit bindings in a semi-automatic way, note that it is very hard to make this fully automatic, I would expect generate some ocaml templates from the compiler API and fix it by hand

bobzhang avatar Apr 14 '16 18:04 bobzhang

This would be great, especially with the huge number of existing typescript definitions (and high activity) in DefinitelyTyped.

copy avatar Apr 15 '16 13:04 copy

Can you elaborate on why would it be very hard to make this fully automatic? Leveraging this would probably make BuckleScript much, much more popular, as it could basically become a viable competition for TypeScript.

niieani avatar Sep 04 '16 13:09 niieani

@niieani since they have different type systems with different expressivity (and runtime encoding). We can only provide this in a best effort solution

bobzhang avatar Sep 06 '16 16:09 bobzhang

Has there been any progress in this ? I agree that this will make rescript more popular and stronger language.

searleser97 avatar Aug 24 '21 13:08 searleser97