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
Tag: decorator
Accessibility – React Ensure click events have key events
I want to be sure that all my onClick event are next to a onKeyDown event. I will use eslint-plugin-jsx-a11y to ensure this. But in code, It is a way to do this generic. I mean, it will be annoying to do all the time: I would like to have a way to tell an element that in onKeyDown in