Retain the list of the properties of a class

47 views Asked by At

I'm creating annotations to add functionalities to some classes at runtime, like the following:

const anno = function () {
    return function (Class, descriptor) {
      // can I have the list of properties here?
    }
};

@anno()
class App {
   property = "hello";
}

Is there a way to retain the list of the properties of a class in javascript with Babel (with some plugins for example) so I could use it inside an annotation?

0

There are 0 answers