Skip to content

Commit

Permalink
chore: tsx test-d
Browse files Browse the repository at this point in the history
  • Loading branch information
teleskop150750 committed Jan 9, 2025
1 parent 68c4eed commit 53cfe33
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions packages-private/dts-test/tsx.test-d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,52 @@ expectType<JSX.Element>(
// infer correct event type
expectType<EventTarget | null>(e.target)
}}
onInputCapture={e => {
expectType<EventTarget | null>(e.target)
}}
onInputCaptureOnce={e => {
expectType<EventTarget | null>(e.target)
}}
onInputCaptureOncePassive={e => {
expectType<EventTarget | null>(e.target)
}}
onInputCapturePassive={e => {
expectType<EventTarget | null>(e.target)
}}
onInputCapturePassiveOnce={e => {
expectType<EventTarget | null>(e.target)
}}
onInputOnce={e => {
expectType<EventTarget | null>(e.target)
}}
onInputOnceCapture={e => {
expectType<EventTarget | null>(e.target)
}}
onInputOnceCapturePassive={e => {
expectType<EventTarget | null>(e.target)
}}
onInputOncePassive={e => {
expectType<EventTarget | null>(e.target)
}}
onInputOncePassiveCapture={e => {
expectType<EventTarget | null>(e.target)
}}
onInputPassive={e => {
// infer correct event type
expectType<EventTarget | null>(e.target)
}}
onInputPassiveCapture={e => {
expectType<EventTarget | null>(e.target)
}}
onInputPassiveCaptureOnce={e => {
expectType<EventTarget | null>(e.target)
}}
onInputPassiveOnce={e => {
expectType<EventTarget | null>(e.target)
}}
onInputPassiveOnceCapture={e => {
expectType<EventTarget | null>(e.target)
}}
/>,
)

Expand Down

0 comments on commit 53cfe33

Please sign in to comment.