Closed lpil closed 1 year ago
If you look at the function signatures, they actually have slightly different return types. I'm stringifying the error in JavaScript and converting it to the correct type in Gleam, because I wasn't sure how to turn it into a correct runtime representation in the JavaScript.
I do want to consolidate this code, just haven't gone through the trouble of figuring it out quite yet :)
Ah I see! My bad. Thank you
Hello!
It seems there's code like this in this library:
This can be written more concisely like so, and it'll also remove the extra function call
Is there a reason you want to have the conditional compilation?