Closed TheSpyder closed 11 months ago
The biggest issue I had with uncurried was a compiler bug: https://github.com/rescript-lang/rescript-compiler/issues/6517. This hasn't been released yet but I've confirmed it with a local compiler build.
However there is a limitation that doesn't seem like it can be fixed: https://github.com/rescript-lang/rescript-compiler/issues/6531
The solution is just to offer multi-arg function types in the Event module. https://github.com/TheSpyder/rescript-nodejs/blob/83e9ebafa898f888f8c0e6e35949c56607823146/src/Event.res#L24-L25
Event
The biggest issue I had with uncurried was a compiler bug: https://github.com/rescript-lang/rescript-compiler/issues/6517. This hasn't been released yet but I've confirmed it with a local compiler build.
However there is a limitation that doesn't seem like it can be fixed: https://github.com/rescript-lang/rescript-compiler/issues/6531
The solution is just to offer multi-arg function types in the
Event
module. https://github.com/TheSpyder/rescript-nodejs/blob/83e9ebafa898f888f8c0e6e35949c56607823146/src/Event.res#L24-L25