Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 10x 10x 10x 2x | import { AnnotationContextRegistry } from './registry/annotation-context.registry';
import { reflectContext } from '../../reflect/reflect.context.global';
import { AnnotationRef } from '../annotation-ref';
import type { Annotation, AnnotationStub } from '../annotation.types';
import { AnnotationByTargetSelector } from './registry/by-target-selector';
export function getAnnotations<S extends AnnotationStub>(
annotation: S,
): AnnotationByTargetSelector<S>;
export function getAnnotations(
...annotations: (Annotation | AnnotationRef | string)[]
): AnnotationByTargetSelector;
export function getAnnotations(
...annotations: (Annotation | AnnotationRef | string)[]
): AnnotationByTargetSelector {
return reflectContext()
.get(AnnotationContextRegistry)
.select(...annotations);
}
|