Post

Happy new year! We're almost ready to release an exciting editor feature - dot completion everywhere! "." will now trigger completions for more than just record fields. Example: you'll get completions for pipeable functions from the module of that type. Examples and videos ⬇️

For newcomers, one of the differences to JS is using pipes where you'd normally use method chaining. This takes a bit of time to learn. To fix this, you now get pipe completions from dots as well. So the experience is like in JS, but an actual pipe is inserted on completion.

0 reposts7 likes

You'll now also get pipe completions when you do dot completion on any type, not just records. And additionally, you can even configure per type to have the editor give completions from additional modules, not just the module it belongs to.

Together, these features helps both newcomers and established ReScript devs, while increasing the discoverability and usability of essential patterns like using and providing pipeable functions for your various types. We're excited to release this and hope it'll give you value!