0Pricing
TypeScript Academy · Lesson

Declarations, source maps, types exports

Generate declaration files, enable source maps for debugging, and learn strategies to export types.

Intro

Goal: Learn how to produce declaration files, enable source maps, and export types clearly.

Declarations

Enable declaration: true to generate .d.ts files along with JS output.

// tsconfig.json
{
  "compilerOptions": {
    "declaration": true,
    "outDir": "dist"
  }
}

All lessons in this course

  1. tsc emit vs noEmit + bundlers
  2. Vite / esbuild / SWC / Rollup basics
  3. Declarations, source maps, types exports
← Back to TypeScript Academy