export const SUBSCRIBER_MAP = new Map ( ) ; export const SUBSCRIBER_OBJECT_MAP = new Map ( ) ; export const SCHEMAS = new Map ( ) ; export function SubscribeTo ( topic ) { return ( target , propertyKey , descriptor ) => { const originalMethod = target [ propertyKey ] ; SUBSCRIBER_MAP . set ( topic , originalMethod ) ; return descriptor ; } ; }