NestJS · Junior · Question 70 of 75
What is the default TypeScript setting Nest projects need for DI by type?
- 1
module: "esnext"only - ✓Correct answer:
emitDecoratorMetadata: true(withexperimentalDecorators: true) - 3
strict: false
Explanation
This makes TypeScript emit constructor parameter types, which Nest reads through reflect-metadata to know what to inject.