Instruction: Explain what decorators are in TypeScript and provide a use case example.
Context: This question evaluates the candidate's knowledge of decorators in TypeScript and their ability to describe how decorators provide a way to add annotations and a meta-programming syntax for class declarations and members.
easy
medium
medium
medium
medium