* Detect language from file extension
(filePath: string)
| 758 | * Detect language from file extension |
| 759 | */ |
| 760 | function detectLanguage(filePath: string): 'typescript' | 'javascript' { |
| 761 | if (filePath.endsWith('.ts') || filePath.endsWith('.tsx')) { |
| 762 | return 'typescript'; |
| 763 | } |
| 764 | return 'javascript'; |
| 765 | } |
no outgoing calls
no test coverage detected