by boubiyeah · 7y ago · 0 comments
You could have:
type Result = {type: 'ok', value: string} | {type: 'err', value: string}
No comments yet.