* Detect language from file extension
(filePath: string)
| 995 | * Detect language from file extension |
| 996 | */ |
| 997 | function detectLanguage(filePath: string): 'typescript' | 'javascript' { |
| 998 | if (filePath.endsWith('.ts') || filePath.endsWith('.tsx')) { |
| 999 | return 'typescript'; |
| 1000 | } |
| 1001 | return 'javascript'; |
| 1002 | } |
no outgoing calls
no test coverage detected