Skip to content

Commit ff5220d

Browse files
38elementseddyerburgh
authored andcommitted
fix: fix type of wrapper.vm (#759)
1 parent bc5aba3 commit ff5220d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/test-utils/src/find-vnodes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function findVNodesBySelector (vNode: VNode, selector: string): Array<VNode> {
5555

5656
export default function findVnodes (
5757
vnode: VNode,
58-
vm: Component | null,
58+
vm: Component | void,
5959
selectorType: ?string,
6060
selector: Object | string
6161
): Array<VNode> {

packages/test-utils/src/find.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import getSelectorTypeOrThrow from './get-selector-type'
99
import { throwError } from 'shared/util'
1010

1111
export default function find (
12-
vm: Component | null,
12+
vm: Component | void,
1313
vnode: VNode | null,
1414
element: Element,
1515
selector: Selector

packages/test-utils/src/wrapper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { orderWatchers } from './order-watchers'
2424

2525
export default class Wrapper implements BaseWrapper {
2626
+vnode: VNode | null;
27-
+vm: Component | null;
27+
+vm: Component | void;
2828
_emitted: { [name: string]: Array<Array<any>> };
2929
_emittedByOrder: Array<{ name: string, args: Array<any> }>;
3030
isVm: boolean;

0 commit comments

Comments
 (0)