Variant types in typescript (mildly off-topic)


#1

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?


#2

Perhaps tagged union types is what you are looking for?


#3

Oh that is kind of perfect, thank you @tristanC