ParentFull threadboubiyeah·But that's the simplest union type.You could have:type Result = {type: 'ok', value: string} | {type: 'err', value: string}View on HN