types: fix types

This commit is contained in:
Evan You
2019-11-01 23:04:28 -04:00
parent 66ecd8b47f
commit 5cdeeaa702
4 changed files with 4 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ type TraceEntry = {
type ComponentTraceStack = TraceEntry[]
export function pushWarningContext(vnode: ComponentVNode) {
export function pushWarningContext(vnode: VNode) {
stack.push(vnode)
}
@@ -83,7 +83,7 @@ function getComponentTrace(): ComponentTraceStack {
last.recurseCount++
} else {
normalizedStack.push({
vnode: currentVNode,
vnode: currentVNode as ComponentVNode,
recurseCount: 0
})
}