TypeScript · Modules
allowImportingTsExtensions
Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set.
Syntax
"allowImportingTsExtensions": trueExample
Example
{
"compilerOptions": {
"allowImportingTsExtensions": true
}
}More in this group
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.