Organizing types and the @ path alias in TypeScript
How to structure type files, use import type, set up the @ path alias in Vite, and barrel exports for clean imports.
During the work I usually face some useful tips and I try to log them here.
How to structure type files, use import type, set up the @ path alias in Vite, and barrel exports for clean imports.
How tsconfig.json and tsconfig.app.json work in a Vite React project, why there are two files, and the right commands to type-check browser and Node.js code.
What every dependency and devDependency does in a typical Vite React TypeScript project, why it is there, and what happens if you remove it.
All about TypeScript