TypeScript 5 decorators - full course

preview_player
Показать описание
Complete advanced typescript courses:

0:00 Video intro
2:31 Class decorators
11:56 Field decorators
18:05 Decorator factories
21:53 Method decorators
29:09 Accessor decorators
33:45 Video outro

Source code:
Рекомендации по теме
Комментарии
Автор

Important note, If you are using "experimentalDecorators" flag in your tsconfig you'll get a decorator implementation which emulates older stage 2 TC39 decorator proposal and is incompatible with new TS 5 decorators which are based on stage 3 proposal.

yankotliarov
Автор

Great video. You ran through all the scenarios I would have run to get a feel for the new decorators implementation.

bruceleeharrison
Автор

Excelling walk through and explanations! Thank you for taking your time on this and sharing.

CRob
Автор

wow what an excellent lecture.
keep up the good work.

jackfrost
Автор

great and smooth course, exactly what I needed, big thanks

dauda-dev
Автор

Great lesson Alex! Thanks for introduce share it!

edwinroman
Автор

Nice lecture, might take some geekiness to fully understand but clearly explains use cases for the different types of decorators

olaboyeolanrewaju
Автор

Awesome, but where to find all context types? For example, for a function parameter decorator what would be the context type?

MrJorjantas
Автор

I may have missed it, but neither this video nor the TypeScript docs mention whether you can or cannot pass additional parameters to a class decorator when using stage 3 decorators. Is this possible?

kieronb
Автор

i will just stick to adding properties and methods the old simple way thank you very much, why humans like to complicate things so much is beyond my level

exe.mdnght
Автор

I'm using the latest version of TypeScript, and the class decorator only has one parameter, which is different from yours. What's the reason for that?

xqhylas
Автор

The video is cool. except I suggest you to be more comfortable while speaking.

WhyAreYouFindingMe