Learning TypeScript 05 — Decorators
4 min readAug 16, 2018
This feature is present in other languages as Attributes, Attribute Decorations or Decorators, and are going to be present in future EcmaScript versions.
Some years ago we used a similar pattern called Mixin but these two patterns have some differences. When you use a mixin you’re literally extending your class. A common example that we did in the past hundreds of times is to add a mixin to make your…