Question · JavaScript and TypeScript course · Module 6: TypeScript Basics

The include and exclude Options in tsconfig

What are the 'include' and 'exclude' options in tsconfig.json used for?

Answer options

  • They specify which modules can be imported in the code
  • They define which files should be included or excluded from TypeScript compilation
  • They specify which external libraries to install
  • They control which data types are allowed in the project

You can check the correct answer by solving this task in the CodeWorlds game.