export function choose>( value: keyof T, choices: T, ): U { return choices[value] }