Closed JamieMason closed 1 year ago
hello @JamieMason 👋 I'm glad you like ts-belt!
but get literal values for Some and undefined for None.
this is how specifically the ReScript compiler works, please see a quick example: https://rescript-lang.org/try?version=v10.1.2&code=DYUwLgBAdg9lIDEoQLwQBQEpUD4IDk4QBuAKFEgGcYBbRZNLXCAZVpHQEZMzzwIAHqmhEkWMhQgBPYdTpiepIA
also you can find more details in the ReScript docs: https://rescript-lang.org/docs/manual/latest/null-undefined-option#interoperate-with-javascript-undefined-and-null
Hey @mobily, Thanks so much for this library, I love it! I'm having a small problem with
O.Option
though which might be a genuine issue or more likely I'm expecting the wrong thing.Steps to Reproduce
You can run this from the Terminal to quickly see it
Expected Output
I'm expecting
Option
s back...Actual Output
...but get literal values for
Some
andundefined
forNone
.Other Comments
The same seems to happen with
O.fromPredicate
andO.fromExecution
.When doing the same thing with
R.Result
though, I get what I would expect.Thanks for your help :+1: