alvivi / snabbdom-tsx

Transforms Typescript TSX into Snabbdom Virtual DOM
MIT License
2 stars 4 forks source link

Type 'VNode<any>' is not assignable to parameter of type 'VNode' #1

Open malthe opened 7 years ago

malthe commented 7 years ago

I get the following error:

ERROR in ./src/app.tsx
(19,47): error TS2345: Argument of type 'VNode<any>' is not assignable to 
  parameter of type 'VNode'.
  Property 'sel' is optional in type 'VNode<any>' but required in type 'VNode'.
Narazaka commented 7 years ago

+1

snabbdom's VNode

import {VNode} from "snabbdom/vnode";

is not compatible with snabbdom-tsx's Snabbdom.Vnode<Element or any>.