'TypeScript - How would I add decorators to a class in another file?

I have a simple question about what I'm trying to do. I'm trying to make a command handler and I need to use slash commands. The problem is, I need to use a class. I was thinking I could have a main class in one file and add decorators to the class in different files. Is this possible?

More Information - I'm trying to separate the decorators, so my code doesn't look like a mess bunched up with a lot of code. I'm not really familiar with classes, as I just began to program again recently. Apparently, the only way I could use this slash interaction is through a class.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source