 
  
   
  
   
  
  function getItemsRef(els: Map<string, IItems[]>) {
  listeners.forEach(listener => {
    const item = els.get(listener.event);
    if (!item)
      throw new Error('Элемент не найден!');
    listener.items.push(item);
  });
}function getItemsRef(els: Map<string, IItems[]>) {
  listeners.forEach(listener => {
    const item = els.get(listener.event);
    listener.items.push(item!);
  });
} 
  
  @keyframes anim0 {
    from { /*Свойство_1: Значение_1;*/ }
    to { /*Свойство_1: Значение_2;*/ }
}
@keyframes anim1 {
    from { /*Свойство_1: Значение_1;*/ }
    to { /*Свойство_1: Значение_2;*/ }
}var flag = false;
elementB.onclick = function() {
	flag = !flag;
	if (flag)
		elementA.style.animationName = "anim0";
	else
		elementA.style.animationName = "anim1";
};