DEV Community

Discussion on: TS decorators (1/2): the basics

Collapse
 
tommus profile image
Thomas Smith

Very nice! Have you found the need to create your own decorators yet? I know popular projects such as Angular and Inversify use them, but I've never found the need to reach for them to create functionality myself.

Collapse
 
jannikwempe profile image
Jannik Wempe

Hi Tomy,
I am happy that you like it! 😊
Most of the frameworks use it for dependency injection (DI). That is also what Inversify is created for. I will write something about DI as well...

Most of the time I have used them for debugging purposes. For example log execution time or log value changes.

But one goal for me writing these posts is to deal with decorators in depth and find valuable use case and write them down 😉