* Detect language from file extension
(filePath: string)
| 744 | * Detect language from file extension |
| 745 | */ |
| 746 | function detectLanguage(filePath: string): 'typescript' | 'javascript' { |
| 747 | if (filePath.endsWith('.ts') || filePath.endsWith('.tsx')) { |
| 748 | return 'typescript'; |
| 749 | } |
| 750 | return 'javascript'; |
| 751 | } |
no outgoing calls
no test coverage detected