TypeScript · Middle · Question 43 of 75
What does paths in tsconfig.json give you?
- ✓Correct answer: Import path aliases, e.g.
@/*→./src/* - 2The list of files and folders to compile
- 3Output paths for the compiled
.jsfiles
Explanation
paths lets you write import { Button } from '@/components/button' instead of long relative paths. It's a resolution setting for the compiler - the bundler must understand the same aliases (Next.js and Vite read them from tsconfig). The file list is set by include, output by outDir.