Question · JavaScript and TypeScript course · Module 6: TypeScript Basics
Declaration Files (.d.ts)
What is the role of .d.ts files (declaration files) in TypeScript?
Answer options
- They describe types for JavaScript code without containing implementation
- They contain compiled JavaScript code
- They are used to configure ESLint
- They define project environment variables
You can check the correct answer by solving this task in the CodeWorlds game.