jeudi 15 mars 2018

Find a class by annotation

Maybe I missed something by is there any language feature / module available in Typescript to do reflection (on namespace level) to get a list of all classes which have a specific annotation? Alternative question would be how to get all classes which implement an interface? Without the need to instantiating them otherwise I could just register them in a DI or so. I want that my base doesn't know anything about the classes.





Aucun commentaire:

Enregistrer un commentaire