TypeScript Tutorial: Building an EventEmitter Class | vanAmsen Coding - 2694

preview_player
Показать описание
Welcome to another vanAmsen coding tutorial! In this video, we're diving into TypeScript and solving the 'Event Emitter' problem from LeetCode. By the end of the tutorial, you'll have a better understanding of how to use TypeScript to handle events and callbacks.

0:00 - Intro
1:16 - Coding
5:17 - Testing
6:33 - Outro

We start with the basic structure of an EventEmitter class, then gradually add functionality to it. We first define the types for 'Callback' and 'Subscription', and then implement the 'subscribe' and 'emit' methods. Throughout the process, we discuss important TypeScript concepts such as type definitions, class methods, and object mapping.

Whether you're new to TypeScript or looking to refine your skills, this tutorial offers valuable insights and practical coding examples. Join vanAmsen as we navigate the fascinating world of TypeScript, and don't forget to like, share, and subscribe for more coding tutorials!
Рекомендации по теме
Комментарии
Автор

Hei dude what extension did you use to read the Medium article on VsCode? Thanks in advace for your help!

essə