I don’t think .d.ts
files are a fair comparison to OCaml’s signature files (.mli
). They serve different purposes, as far as I can tell. ReScript has its roots in OCaml, and signature files are a testament to that.
The proposal Private by Default could potentially reduce the need for an additional file to hide implementation details, but it’s unlikely to happen in the short term.