News for hackers. Stuff that matters.
Re:From TypeScript to ReScript by cies on Wednesday January 12, 2022 @05:43AM (#29904656)
There's some project to get TS type annotations to work for ReScript. It'd be great if ReScript could lift on the work done by the TS community to produce types for many common JS libs.
Re:From TypeScript to ReScript by jatins on Wednesday January 12, 2022 @12:01PM (#29909457)
I wonder how would that work. Typescript has pretty advanced types like Template Literal Types[0]. Wouldn't ReScript need to support all those types? Or maybe it just resorts to `any` equivalent if I can't map a TS type to ReScript type.

[0] https://www.typescriptlang.org/docs/handbook/2/template-lite...