import { ViewUpdaters } from '../view-updaters' ; import { IEvent } from '@nestjs/cqrs' ; import { Type } from '@nestjs/common' ; export function ViewUpdaterHandler ( event ) { return ( target ) => { ViewUpdaters . add ( event . name , target ) ; } ; }