TypeScript · Junior · Question 34 of 75

Why install packages like @types/lodash?

Explanation

@types/* packages are published from the DefinitelyTyped repository and contain only .d.ts files. Many modern libraries ship their own types - then @types isn't needed. They're usually installed as devDependencies.

Further reading

Problem with a question

TypeScript · Junior · question 34

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