import type { Constructor } from '../typings' ; import { MetadataStorage } from '../metadata' ; import type { EventSubscriber } from '../events' ; export function Subscriber ( ) { return function ( target ) { const subscribers = MetadataStorage . getSubscriberMetadata ( ) ; subscribers [ target . name ] = new target ( ) ; } ; }