diff --git a/src/compiler/compile/nodes/Animation.ts b/src/compiler/compile/nodes/Animation.ts index 18e091d4d7..0758a6c137 100644 --- a/src/compiler/compile/nodes/Animation.ts +++ b/src/compiler/compile/nodes/Animation.ts @@ -4,6 +4,7 @@ import Component from '../Component'; import TemplateScope from './shared/TemplateScope'; import { TemplateNode } from '../../interfaces'; import Element from './Element'; +import EachBlock from './EachBlock'; export default class Animation extends Node { type: 'Animation'; @@ -34,7 +35,7 @@ export default class Animation extends Node { }); } - (block as any).has_animation = true; + (block as EachBlock).has_animation = true; this.expression = info.expression ? new Expression(component, this, scope, info.expression, true)