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 22 23 24 25 26 27 | 10x 10x 10x 10x 10x 76x 67x | import { DecoratorHookRegistry } from '../../factory/decorator-hook.registry';
import { AnnotationTargetFactory } from '../../target/annotation-target.factory';
import { AnnotationContextRegistry } from './annotation-context.registry';
import { REGISTER_ANNOTATION_HOOK } from './hooks/register-annotation-context.hook';
import type { ReflectProvider } from '../../../reflect/reflect-provider.type';
/**
* @internal
*/
export const ANNOTATION_CONTEXT_REGISTRY_PROVIDERS: ReflectProvider[] = [
{
provide: AnnotationContextRegistry,
deps: [AnnotationTargetFactory],
factory: (targetFactory: AnnotationTargetFactory) => {
return new AnnotationContextRegistry(targetFactory);
},
},
{
provide: DecoratorHookRegistry,
deps: [DecoratorHookRegistry],
factory: (decoratorHookRegistry: DecoratorHookRegistry) => {
return decoratorHookRegistry.add(REGISTER_ANNOTATION_HOOK);
},
},
];
|