import { Subject } from '@/services/data/tuples/subject-types' ; export enum SubjectEventTypes { SUBJECT_RENAMED = 'subject-renamed' , SUBJECT_DEF_CHANGED = 'subject-def-changed' } export interface SubjectEventBus { fire ( type , subject ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; fire ( type , subject ) : this ; on ( type , listener ) : this ; off ( type , listener ) : this ; }