()
| 76 | * ``` |
| 77 | */ |
| 78 | export function Injectable(): ClassDecorator { |
| 79 | return function (target: Function): void { |
| 80 | const existing = injectableMetadata.get(target as Constructor); |
| 81 | |
| 82 | injectableMetadata.set(target as Constructor, { |
| 83 | injectable: true, |
| 84 | dependencies: [], |
| 85 | ...(existing?.properties && { properties: existing.properties }) |
| 86 | }); |
| 87 | } as ClassDecorator; |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * @Updatable() 装饰器 |
no test coverage detected