Skip to content

Commit e5a75f9

Browse files
committed
Add test case
1 parent cbc2733 commit e5a75f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/dts-test/tsx.test-d.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ expectType<JSX.Element>(<div style={[{ color: 'red' }]} />)
1515
expectType<JSX.Element>(
1616
<div style={[{ color: 'red' }, [{ fontSize: '1em' }]]} />
1717
)
18+
expectType<JSX.Element>(
19+
<div style={[undefined, {background: 'green'}]} />
20+
)
1821

1922
// @ts-expect-error unknown prop
2023
;<div foo="bar" />
@@ -58,3 +61,4 @@ expectType<JSX.Element>(
5861
)
5962
// @ts-expect-error
6063
;<Suspense onResolve={123} />
64+

0 commit comments

Comments
 (0)