frpc-desktop/electron/core/annotation/Component.ts

26 lines
607 B
TypeScript
Raw Normal View History

// // 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);
// // };
// // }