Hacker News new | ask | show | jobs
by cies 1612 days ago
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.
1 comments

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...