TypeScript Course — GameCode
Master TypeScript from scratch: types, interfaces, generics, classes, utility types, and advanced patterns. Write JavaScript code with static typing superpowers.
The Foundations of Type
What is TypeScript and Why Use It
Basic Type Annotations
Type Inference
number, string and boolean
Typed Arrays
Tuples
Enums
any vs unknown
void, null and undefined
Type assertions (as)
The Forms of the World: Interfaces and Types
Interfaces: defining shapes
Optional Properties
Readonly Properties
Type aliases
Interface vs Type
Extending Interfaces
Intersection types (&)
Index signatures
Interfaces for Functions
Recursive Types
The Enchanted Functions
Typing Function Parameters
Return types
Typed Arrow Functions
Optional and Default Parameters
Typed Rest Parameters
Typed Callbacks
Function overloads
Generics in Functions
Generic Functions with Constraints
The Union of the Kingdoms
Union types: this OR that
Narrowing with typeof
Literal types
Discriminated unions
The in operator for narrowing
Deep Intersection Types
Never type
Arrays of unions and unions of arrays
Basic Conditional Types
The Guardians of Type
typeof as a type guard
instanceof for classes
The in Operator
Type predicates (is)
Exhaustive checking with never
Assertion functions
Narrowing with Assignment
Combining type guards
Real-world narrowing patterns
The Generic Artifacts
Generics: the magic of variable types
Generic Interfaces
Generic Classes
keyof operator
typeof in Type Context
Mapped types
Conditional types
infer keyword
Advanced Generic Constraints
The Guild's Classes
Classes in TypeScript
Access modifiers: public, private, protected
Readonly in Classes
Getters and Setters
Inheritance with extends
Abstract Classes
implements: classes that fulfill interfaces
Shorthand Constructor Parameters
Static members
The Merchant's Modules
What are modules in TypeScript
export and import
export default
Re-exports and Barrel Files
Namespaces
Declaration files (.d.ts)
Ambient declarations
TypeScript Project Organization
The Ancestral Utilities
Partial and Required
Pick and Omit
Record
Readonly utility
ReturnType and Parameters
Exclude and Extract
NonNullable
Building Your Own Utility Types
Complete Catalog of Utility Types
The Temple of Configuration
tsconfig.json: the project map
strict mode and its flags
strictNullChecks in Action
target and module options
paths and aliases
noImplicitAny in Action
Migrating a JavaScript Project to TypeScript
TypeScript in 2026: State of the Art
The TypeScript Architect's Summit
Result: errors as values
Branded types
Typed Builder Pattern
Type-safe event emitter
React and TypeScript
Node.js and TypeScript
Project: Type System for API (part 1)
Project: Type System for API (part 2)
Project: Type System for API (part 3)