Skip to content

Commit 0ecb0ea

Browse files
committed
chore: fix type error
1 parent b11ecbd commit 0ecb0ea

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

packages/runtime-vapor/__tests__/_utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function makeRender<Component = ObjectComponent | SetupFn>(
2424
})
2525

2626
const define = (comp: Component) => {
27-
const component = defineComponent(comp)
27+
const component = defineComponent(comp as any)
2828
let instance: ComponentInternalInstance
2929
const render = (
3030
props: Data = {},

packages/runtime-vapor/__tests__/componentProps.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ describe('component props (vapor)', () => {
402402
const n0 = t0()
403403
return n0
404404
},
405-
}).render({
405+
}).render!({
406406
get foo() {
407407
return 1
408408
},

playground/src/props.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ export default defineComponent({
5959
return _ctx.count * 2
6060
},
6161
},
62-
n0,
62+
// @ts-expect-error TODO
63+
n0[0],
6364
)
6465

6566
return n0

0 commit comments

Comments
 (0)