# Typescript class decorators

**URL:** <https://forum.codewithmosh.com/t/typescript-class-decorators/23266>\
**Category:** TypeScript\
**Created:** [October 25, 2023, 5:12pm UTC](https://forum.codewithmosh.com/t/typescript-class-decorators/23266 "2023-10-25T17:12:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![comituairma](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@comituairma](https://forum.codewithmosh.com/u/comituairma)\
**Post date:** [October 25, 2023, 5:12pm UTC](https://forum.codewithmosh.com/t/typescript-class-decorators/23266/1 "2023-10-25T17:12:34Z")

</div>

Can anyone explain how to use class decorators? Because the video that mosh released is downright awful. His explanation is really bad. The code in the video doesn’t work.

---

<div class="post-metadata">

**Author:** ![theorion](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/theorion/32/7783_2.png) [@theorion](https://forum.codewithmosh.com/u/theorion)\
**Post date:** [October 25, 2023, 9:58pm UTC](https://forum.codewithmosh.com/t/typescript-class-decorators/23266/2 "2023-10-25T21:58:27Z")

</div>

to be honest they were a struggle, and I really don’t know what to use them for except they add things to classes through inheritance I think.
