From 0ca5fd21390e28580d5ac2c77161b760854f3669 Mon Sep 17 00:00:00 2001 From: Andreas Ehrencrona Date: Thu, 10 Dec 2020 09:10:14 +0200 Subject: [PATCH] more specific cast --- src/compiler/compile/nodes/Animation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)