TypeScript

Type-safe JavaScript with TypeScript

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

TypeScript vs JavaScript Explained

TypeScript is JavaScript plus static types. Compare the two languages across type checking, error detection, tooling, and real-world development.

JavaScriptTypeScript
Jul 17, 2026· 6 min read

How TypeScript Helps Catch Bugs Early

TypeScript catches bugs at compile time that JavaScript only finds at runtime. See real examples of the most common errors TypeScript prevents.

TypeScript
Jul 17, 2026· 5 min read

Run TypeScript Code from the Command Line

Learn the three ways to run TypeScript from the terminal: compile with tsc and run with Node.js, run directly with tsx, or use ts-node for one-shot execution.

TypeScript
Jul 17, 2026· 5 min read

TypeScript Compiler Explained

The TypeScript compiler (tsc) turns .ts files into .js files while checking types. Learn what it does, how to use it, and how it fits your workflow.

TypeScript
Jul 17, 2026· 6 min read

Create a tsconfig File

A tsconfig.json file tells TypeScript how to compile your project. Learn how to create one, what the key sections mean, and which options to set first.

TypeScript
Jul 17, 2026· 7 min read

Type Promise Return Values

Learn to type what a promise resolves to in TypeScript. Covers explicit Promise<T> annotations, inference from async functions, ReturnType, and Awaited for extracting resolved types.

TypeScript
Jul 17, 2026· 7 min read

Runtime Validation in TypeScript

TypeScript types disappear at runtime. Learn how to validate data as it enters your application using type guards, assertion functions, and validation libraries to bridge the gap between compile-time types and runtime reality.

TypeScript
Jul 17, 2026· 7 min read

Common Runtime Type Mistakes in TypeScript

TypeScript types disappear at runtime, and the most common mistakes happen when developers forget this. Learn the pitfalls of typeof, instanceof, type assertions, and structural checking so you stop trusting types at runtime.

TypeScript
Jul 17, 2026· 6 min read

Pick Utility Type in TypeScript

Pick creates a new type by selecting only the properties you name from an existing type. Use it to build focused types for specific views, API responses, or function parameters.

TypeScript
Jul 17, 2026· 5 min read

Parameters Utility Type in TypeScript

Parameters<T> extracts the parameter types of a function as a tuple. Use it to reuse parameter types without duplicating them.

TypeScript
Jul 17, 2026· 7 min read

Template Literal Types in TypeScript

Template literal types construct new string literal types at the type level, just like template literals build strings at runtime. Use them for string pattern matching and type-safe APIs.

TypeScript
Jul 17, 2026· 6 min read

Set Up ESLint for TypeScript

Install and configure ESLint with typescript-eslint to catch bugs and enforce consistent code style in your TypeScript project.

TypeScript