Variant types in typescript (mildly off-topic)


I’m working on a typescript project, but ReasonML has warped my brain somewhat, and I keep wanting write variant types. Does anyone have any techniques for doing this?


Perhaps tagged union types is what you are looking for?


Oh that is kind of perfect, thank you @tristanC