(
annotation: Annotation
)
| 10 | * - annotation object |
| 11 | */ |
| 12 | export function createDecoratorAnnotation<D extends Decorator = Decorator>( |
| 13 | annotation: Annotation |
| 14 | ): PropertyDecorator & Annotation & D { |
| 15 | function decorator(target, property) { |
| 16 | if (is20223Decorator(property)) { |
| 17 | return annotation.decorate_20223_(target, property) |
| 18 | } else { |
| 19 | storeAnnotation(target, property, annotation) |
| 20 | } |
| 21 | } |
| 22 | return Object.assign(decorator, annotation) as any |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * Stores annotation to prototype, |
no outgoing calls
no test coverage detected
searching dependent graphs…