TypeScript · Modules

allowImportingTsExtensions

Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set.

Syntax
"allowImportingTsExtensions": true

Example

Example
{
  "compilerOptions": {
    "allowImportingTsExtensions": true
  }
}

More in this group

allowArbitraryExtensions allowUmdGlobalAccess baseUrl customConditions module moduleSuffixes noResolve noUncheckedSideEffectImports

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course