Skip to content

Commit fd6814c

Browse files
committed
chore: fix types
1 parent bb77e99 commit fd6814c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/__tests__/utils/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ type VM<V> = InstanceType<V> & { unmount(): void; [key: string]: any };
2323

2424
export function mount<V>(Comp: V) {
2525
const el = document.createElement('div');
26-
const app = createApp(Comp);
26+
const app = createApp(Comp as any);
2727

28-
// @ts-ignore
29-
const unmount = () => app.unmount(el);
30-
const comp = (app.mount(el) as any) as VM<V>;
28+
const unmount = () => app.unmount();
29+
const comp = app.mount(el) as any as VM<V>;
3130
comp.unmount = unmount;
3231
return comp;
3332
}

0 commit comments

Comments
 (0)