diff --git a/flow/vnode.js b/flow/vnode.js index c9027586..07188d3b 100644 --- a/flow/vnode.js +++ b/flow/vnode.js @@ -53,7 +53,6 @@ declare interface VNodeData { }; directives?: Array; keepAlive?: boolean; - [key: string]: any; } declare type VNodeDirective = { diff --git a/src/core/instance/render.js b/src/core/instance/render.js index def5c240..89135958 100644 --- a/src/core/instance/render.js +++ b/src/core/instance/render.js @@ -163,7 +163,7 @@ export function renderMixin (Vue: Class) { if (Array.isArray(value)) { value = toObject(value) } - const data = vnode.data + const data: any = vnode.data for (const key in value) { if (key === 'class' || key === 'style') { data[key] = value[key]