最近在看一些 NestJS 的介紹,看到了 decorators 裝飾器這玩意。記得之前在 Vue2 使用 Typescript 的相關文章也看到過,不過 Vue3 似乎捨棄了裝飾器的寫法,所以當時就沒有太深入研究。