Skip to content
Advertisement

Tag: decorator

How to extend class type with decorator

I’d like to use decorators in my project. Here’s what I have written: As you see this decorators creates a few fields. But typescript can’t recognize them It does exsist though. If I add @ts-ignore before using these parameters, the code works okay. I wounder, how can I create a class decorator, that would extend parent’s type. I tried to

Advertisement