(filePath: string)
| 108 | } |
| 109 | |
| 110 | function languageForFile(filePath: string): Language { |
| 111 | if (filePath.endsWith('.tsx')) return 'tsx'; |
| 112 | if (filePath.endsWith('.jsx')) return 'jsx'; |
| 113 | if (/\.(?:ts|mts|cts)$/.test(filePath)) return 'typescript'; |
| 114 | return 'javascript'; |
| 115 | } |
| 116 | |
| 117 | // ============================================================================= |
| 118 | // Route table — this framework's pages, matched the Expo Router way |