TypeScript

Type-safe JavaScript with TypeScript

187 tutorials
12 of 187 tutorials
Jul 17, 2026· 7 min read

ES Modules in TypeScript

ES modules let you split TypeScript code into files that import and export values. Learn the syntax, how TypeScript adds type checking, and how to set up your first multi-file project.

TypeScript
Jul 17, 2026· 6 min read

Named Exports in TypeScript

Named exports let you share multiple values and types from a single TypeScript module. Learn every named export pattern and how TypeScript enforces correct usage across files.

TypeScript
Jul 17, 2026· 6 min read

Type Only Imports in TypeScript

Type-only imports tell TypeScript and your bundler that an import is only needed at compile time. Learn import type, inline type specifiers, and when each style matters.

TypeScript
Jul 17, 2026· 7 min read

Barrel Files in TypeScript

Barrel files consolidate multiple module exports into a single import path. Learn how to create them, when they help, and the performance and circular-dependency traps to avoid.

TypeScript
Jul 17, 2026· 6 min read

Path Aliases in TypeScript

Path aliases let you replace long relative import paths with short, meaningful names. Learn how to configure tsconfig paths, use wildcards, and avoid common pitfalls.

TypeScript
Jul 17, 2026· 7 min read

Module Resolution in TypeScript

Module resolution is how TypeScript finds the file behind an import path. Learn how bundler, nodenext, and node16 resolution work, and how to pick the right one.

TypeScript
Jul 17, 2026· 7 min read

Organize TypeScript Project Folders

A well-organized folder structure makes a TypeScript project easier to navigate, build, and scale. Learn practical patterns for src, types, tests, and monorepos.

TypeScript
Jul 17, 2026· 7 min read

Avoid Circular Imports in TypeScript

Circular imports happen when two modules depend on each other, causing runtime errors or incomplete values. Learn how to detect, break, and prevent import cycles.

TypeScript
Jul 17, 2026· 7 min read

Module Import Mistakes in TypeScript

Common module import mistakes in TypeScript can cause compile errors, runtime crashes, and confusing type behavior. Learn what to avoid and how to fix each mistake.

TypeScript
Jul 17, 2026· 6 min read

Declaration Files in TypeScript

Declaration files (.d.ts) describe the shape of JavaScript code so TypeScript can type-check it. Learn what they are, how they work, and when to use them.

TypeScript
Jul 17, 2026· 6 min read

Global Declarations in TypeScript

Global declarations add types to the global scope in TypeScript. Learn how to declare global variables, augment built-in types, and extend window with declare global.

TypeScript
Jul 17, 2026· 7 min read

Module Augmentation in TypeScript

Module augmentation lets you add new types to existing modules without modifying their source code. Learn how to extend third-party packages and your own modules with declare module.

TypeScript