26 lines
607 B
TypeScript
26 lines
607 B
TypeScript
// // Class decorator
|
|
// import "reflect-metadata";
|
|
// import BeanFactory from "../BeanFactory";
|
|
//
|
|
// const Component =
|
|
// (): ClassDecorator =>
|
|
// target => {
|
|
// // BeanFactory.registerBean(
|
|
// // beanName || BeanFactory.getBeanName(target.name),
|
|
// // target
|
|
// // );
|
|
// };
|
|
//
|
|
//
|
|
//
|
|
//
|
|
// export default Component;
|
|
//
|
|
//
|
|
// // export default function Component(beanName?: string): ClassDecorator {
|
|
// // return function (target) {
|
|
// // const paramtypes = Reflect.getMetadata('design:paramtypes', target);
|
|
// // console.log(paramtypes);
|
|
// // };
|
|
// // }
|