NestJS · Junior · Question 70 of 75

What is the default TypeScript setting Nest projects need for DI by type?

Explanation

This makes TypeScript emit constructor parameter types, which Nest reads through reflect-metadata to know what to inject.

Further reading

Problem with a question

NestJS · Junior · question 70

Test yourself

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

Take this quiz