Skip to content

Commit 84749c4

Browse files
committed
test: fix flow errors
1 parent 72c386b commit 84749c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/TransitionStub.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ function getFirstComponentChild (children: ?Array<VNode>): ?VNode {
2626
}
2727
}
2828

29-
function isPrimitive (value: any): boolean %checks {
29+
function isPrimitive (value: any): boolean {
3030
return (
3131
typeof value === 'string' ||
3232
typeof value === 'number' ||
33-
// $flow-disable-line
33+
// $FlowIgnore
3434
typeof value === 'symbol' ||
3535
typeof value === 'boolean'
3636
)
@@ -126,8 +126,8 @@ export default {
126126
: child.key
127127

128128
const data: Object = (child.data || (child.data = {})).transition = extractTransitionData(this)
129-
const oldRawChild: VNode = this._vnode
130-
const oldChild: VNode = getRealChild(oldRawChild)
129+
const oldRawChild: ?VNode = this._vnode
130+
const oldChild: ?VNode = getRealChild(oldRawChild)
131131
if (child.data.directives && child.data.directives.some(d => d.name === 'show')) {
132132
child.data.show = true
133133
}

0 commit comments

Comments
 (0)