TypeScript · Junior · Question 33 of 75

What is a .d.ts file?

Explanation

Declarations let you use JS libraries with types. They're written by hand, generated by the compiler (declaration: true) or installed from DefinitelyTyped. A .d.ts file contains no executable code.

Further reading

Problem with a question

TypeScript · Junior · question 33

Test yourself

Take the TypeScript · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz