0Pricing
TypeScript Academy · Lesson

Path Aliases and baseUrl

Configure paths for cleaner imports.

Welcome

Path aliases clean up deep relative import paths and are configured in tsconfig.

The Import Path Problem

Deep relative paths like ../../../../utils are brittle and hard to read.
import { logger } from '../../../../utils/logger';
import { User } from '../../../models/user';

All lessons in this course

  1. The strict Flag and What It Enables
  2. Module and Target Configuration
  3. Path Aliases and baseUrl
  4. Incremental Builds and Declaration Files
← Back to TypeScript Academy