refactor: circular deps part 9

This commit is contained in:
Nathan Walker
2025-07-09 08:33:52 -07:00
parent 50cfd6fb25
commit d8681cbebd
17 changed files with 65 additions and 58 deletions

View File

@@ -0,0 +1,12 @@
// Shared helpers and types for utils, used by both native-helper and common.
// Only put platform-agnostic logic here.
export function getFileExtension(path: string): string {
if (!path) {
return '';
}
const index = path.lastIndexOf('.');
return index !== -1 ? path.substring(index + 1) : '';
}
// Add more shared helpers/types/constants as needed.