Typescript class decorators

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.

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.