(score: number | 'NaN' | 'Infinity' | '-Infinity')
| 384 | } |
| 385 | |
| 386 | export function convertIntermediateScoreToNumber(score: number | 'NaN' | 'Infinity' | '-Infinity'): number { |
| 387 | switch (score) { |
| 388 | case 'NaN': |
| 389 | return NaN |
| 390 | case 'Infinity': |
| 391 | return Infinity |
| 392 | case '-Infinity': |
| 393 | return -Infinity |
| 394 | default: |
| 395 | return score |
| 396 | } |
| 397 | } |
no outgoing calls
no test coverage detected