TypeScript · JavaScript Support

allowJs

Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.

Syntax
"allowJs": true

Example

Example
{
  "compilerOptions": {
    "allowJs": true
  }
}

More in this group

checkJs maxNodeModuleJsDepth

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