const determine = (value: string): string | void => {
switch (value) {
case 'A': {
return 'a'
}
case 'B': {
return 'b'
}
default:
throw new Exception() // it depends
break
}
}
const value = determine('A')