RationalJS / future

A Js.Promise alternative for ReasonML
213 stars 15 forks source link

Feature Request: Interface files #40

Closed seprich closed 4 years ago

seprich commented 4 years ago

Hi, this library does not for some reason declare interfaces (.rei files). Is this intentional and what would you think of introducing rei-files complete with function signatures? In my opinion it would make easier to understand the library usage if it contains type declarations in addition to implementation. Also type inference is great but when debugging it is helpful if the inference chain does not go inside the library ; either the function usage fits with its environment or not, based on the interface. What do you think?

scull7 commented 4 years ago

I would think that interface files would always be a welcome addition.