(operation: 'plus', a: number, b: number)
| 1 | import { plus } from './actions' |
| 2 | |
| 3 | export function calculator(operation: 'plus', a: number, b: number) { |
| 4 | if (operation === 'plus') |
| 5 | return plus(a, b) |
| 6 | |
| 7 | throw new Error('unknown operation') |
| 8 | } |
no test coverage detected