Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/jsx.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ type EventHandlers<E> = {
[K in keyof E]?: E[K] extends Function ? E[K] : (payload: E[K]) => void
}

type ReservedProps = {
interface ReservedProps {
key?: string | number | symbol
ref?: VNodeData['ref']
/**
Expand Down
4 changes: 2 additions & 2 deletions types/test/v3/tsx-test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VNode, defineComponent, ref } from '../../index'
import { expectType } from '../utils'
import { expectType, expectError } from '../utils'

expectType<VNode>(<div />)
expectType<JSX.Element>(<div />)
Expand Down Expand Up @@ -47,7 +47,7 @@ const Foo = defineComponent({
})

// @ts-expect-error
;<Foo />
;<Foo foo="bax" />
// @ts-expect-error
;<Foo bar="1" />
// @ts-expect-error
Expand Down