Options are mapped to T | undefined which makes nested options such as option<option<string>> unrepresentable. One way to solve it is how componentize-js does it, to have an alternative option representation only for these cases, something like { tag: some, value: T} | { tag: none }.
Options are mapped to
T | undefinedwhich makes nested options such asoption<option<string>>unrepresentable. One way to solve it is howcomponentize-jsdoes it, to have an alternative option representation only for these cases, something like{ tag: some, value: T} | { tag: none }.