mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Remove the need to specify TypeScript file extensions in imports (#3094)
* Don't require TS extensions in imports * Resolve all import extension errors * Remove file extension from import paths used in mocks * Remove .d of type definition file paths * Remove .d of type definition file and import as type --------- Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@ let clearAuthCache = () => {}; // Default no-op function
|
||||
|
||||
// Try to get clearAuthCache function safely
|
||||
try {
|
||||
const authModule = require( "components/LoginSignUp/AuthenticationService.ts" );
|
||||
const authModule = require( "components/LoginSignUp/AuthenticationService" );
|
||||
|
||||
if ( authModule && typeof authModule.clearAuthCache === "function" ) {
|
||||
// eslint-disable-next-line prefer-destructuring
|
||||
|
||||
Reference in New Issue
Block a user