Is there a better way to write the binding so that the prim doesn’t get added to the callback function? This parameter causes jest tests to hang on async tests as they expect done() to be called explicitly if there’s a parameter
Though, I always thought this warning from the old docs was a little off-putting:
In general, bs.uncurry is recommended; the compiler will do lots of optimizations to resolve the currying to uncurrying at compile time. However, there are some cases the compiler can’t optimize it. In these cases, it will be converted to a runtime check.
(emphasis added)
Though I don’t know it practice how often it gets converted to a runtime check, or if is even still applicable in current ReScript version.