fix(types): fix typescript error when spreading $props(#5968)
This commit is contained in:
@@ -44,6 +44,7 @@ export const Custom = defineComponent({
|
||||
expectType<JSX.Element>(<Custom baz={1} />)
|
||||
expectType<JSX.Element>(<Custom custom={1} baz={1} />)
|
||||
expectType<JSX.Element>(<Custom bar="bar" baz={1} />)
|
||||
expectType<JSX.Element>(<Custom ref={''} bar="bar" baz={1} />)
|
||||
|
||||
// @ts-expect-error
|
||||
expectType<JSX.Element>(<Custom />)
|
||||
|
||||
Reference in New Issue
Block a user