TypeScript

Type-safe JavaScript with TypeScript

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

Classes in TypeScript Explained

TypeScript classes build on JavaScript's class syntax with type annotations for fields, constructors, and methods. Learn the basics of writing typed classes from scratch.

TypeScript
Jul 17, 2026· 8 min read

Constructors in TypeScript

TypeScript constructors initialize new class instances. Learn how to type constructor parameters, use default values, write overloaded constructors, and handle the this context safely.

TypeScript
Jul 17, 2026· 8 min read

Public Private and Protected in TypeScript

TypeScript access modifiers control which parts of your code can see and use class members. Learn the differences between public, private, and protected, and when to use each.

TypeScript
Jul 17, 2026· 7 min read

Readonly Class Properties in TypeScript

The readonly modifier prevents reassignment to a class property after the constructor finishes. Learn how to use it, when it helps, and how it differs from const.

TypeScript
Jul 17, 2026· 7 min read

Implements Keyword in TypeScript

The implements keyword tells TypeScript that a class must satisfy a specific interface. Learn how it checks your class shape without changing its type or runtime behavior.

TypeScript
Jul 17, 2026· 7 min read

Abstract Classes in TypeScript

Abstract classes define a contract that subclasses must fulfill. Learn how to use the abstract keyword to create base classes that cannot be instantiated directly.

TypeScript
Jul 17, 2026· 7 min read

Inheritance vs Composition in TypeScript

Inheritance shares behavior through parent classes. Composition builds objects by combining smaller pieces. Learn when each pattern works best in TypeScript.

TypeScript
Jul 17, 2026· 6 min read

Parameter Properties in TypeScript

Parameter properties let you declare and initialize class fields directly in the constructor signature. Learn this TypeScript shorthand that eliminates repetitive boilerplate.

TypeScript
Jul 17, 2026· 8 min read

Decorators in TypeScript Explained

TypeScript decorators are functions that modify classes, methods, properties, and parameters at design time. Learn the different decorator types and how to use them.

TypeScript
Jul 17, 2026· 8 min read

Model Objects with TypeScript Classes

Learn how to design TypeScript classes that model real-world concepts like users, orders, and products. Practical patterns for building maintainable domain models.

TypeScript
Jul 17, 2026· 6 min read

Default Exports in TypeScript

Default exports let a TypeScript module export a single main value. Learn how they work, when to use them, and the tradeoffs compared to named exports.

TypeScript