( functionName: string, )
| 289 | } |
| 290 | |
| 291 | function getIOColor( |
| 292 | functionName: string, |
| 293 | ): 'tertiary-light' | 'tertiary' | 'tertiary-dark' { |
| 294 | // Add some color variation to be able to distinguish various sources. |
| 295 | switch (functionName.charCodeAt(0) % 3) { |
| 296 | case 0: |
| 297 | return 'tertiary-light'; |
| 298 | case 1: |
| 299 | return 'tertiary'; |
| 300 | default: |
| 301 | return 'tertiary-dark'; |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | function getIOLongName( |
| 306 | ioInfo: ReactIOInfo, |
no outgoing calls
no test coverage detected