- Courses
- 💻Programming Languages
- 🛡️TypeScript
- Common TypeScript Usage Patterns
Module 3 - Common TypeScript Usage Patterns
Discover common TypeScript patterns for browser and Node.js development. Learn to type real-world patterns effectively.
📄️Typing Common JS Patterns
Learn how to type dictionaries, factory functions, higher-order functions, and callbacks in TypeScript with index signatures, Record, and generics.
📄️Working with DOM & Browser APIs
How TypeScript types DOM elements and browser events, and how to safely narrow them to avoid runtime errors.
📄️Working with Node.js
How TypeScript types Node's fs, path, and EventEmitter modules, handles overloads, and covers untyped packages with DefinitelyTyped.
📄️Hands-On: Add TypeScript to a Small Node Project
Convert a small plain JavaScript Node project into a fully typed TypeScript project, step by step, with error handling and type checks.
Found this helpful? Share the knowledge...
... or support this project to keep it alive!
Previous
Hands-On: Type a small utility library
Next
Typing Common JS Patterns