import { BridgeMessageType } from './bridge-message-type.type' ; import { BridgeMessage } from './bridge-message.interface' ; function messageMatchesType ( message , types ) { return types . includes ( message . type ) ; } export function isTimelineMessage ( message ) { return messageMatchesType ( message , [ 'task' , 'instability-period' , 'change-detection' ] ) ; } export function isDragMessage ( message ) { return messageMatchesType ( message , [ 'drag' ] ) ; }