TypeScript · Senior · Question 18 of 75
What are Project References (references, composite) for?
- ✓Correct answer: Splitting a repository into incrementally built projects
- 2Using types from npm packages without installing
@types - 3Linking to documentation from TSDoc comments
Explanation
Each subproject compiles separately and emits .d.ts, and dependent projects use the declarations rather than the sources. This speeds up type checking and enforces boundaries between monorepo packages.