Skip to content

Commit 1faaffd

Browse files
committed
- static typing gets in the way here when children are not vnodes
1 parent 445a828 commit 1faaffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ithril/Vnode.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import js.html.Element;
66
#end
77

88
typedef Vnode = {
9-
tag:EitherType<String, Dynamic>,
9+
tag:Dynamic,
1010
?key:String,
1111
?attrs:Dynamic,
12-
?children:Array<Vnode>,
12+
?children:Array<Dynamic>,
1313
?text:String,
1414
#if js
1515
?dom:Element,

0 commit comments

Comments
 (0)