(input?: string)
| 1472 | } |
| 1473 | |
| 1474 | export function toolFiletype(input?: string): string | undefined { |
| 1475 | if (!input) { |
| 1476 | return undefined |
| 1477 | } |
| 1478 | |
| 1479 | const ext = path.extname(input) |
| 1480 | const lang = LANGUAGE_EXTENSIONS[ext] |
| 1481 | if (["typescriptreact", "javascriptreact", "javascript"].includes(lang)) { |
| 1482 | return "typescript" |
| 1483 | } |
| 1484 | |
| 1485 | return lang |
| 1486 | } |
no outgoing calls
no test coverage detected