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:
Corey Farwell
2025-09-07 17:41:42 -04:00
committed by GitHub
parent 27916273a2
commit a43446909c
367 changed files with 631 additions and 629 deletions

View File

@@ -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