undefinedin front end code. I wrote a small library to implement an
Optiontype in Typescript. It's based on the Scala code for
Option--the simlarities should be clear on a visual inspection. You can find that library here:
newoperator. I scoured the internet in search of answers and I came out with the best hack I could find that still played nice with type parameters.
Some_instead of just
Some. It's a tradeoff I'm willing to make to have
nonekeys as a parameter to mimic the syntax of a
Eithertype in the works, but that'll have to wait for another post.