Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Service {}
- function myFirstDecorator(constructor: Function) {
- console.log(constructor);
- }
- @myFirstDecorator
- class Module {
- constructor(private service: Service) {}
- }
- console.log(Reflect.getOwnMetadata('design:paramtypes', Module)); // будет массив `[Service]`
Add Comment
Please, Sign In to add comment