Skip to content

Commit 41b1fc8

Browse files
committed
fix: use ts 3.9 4.0 comments children type problem
1 parent eef8563 commit 41b1fc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/components/connect.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2445,7 +2445,7 @@ describe('React', () => {
24452445
type Comp3NoDispatchType = NoDispatchType
24462446
type Comp3OwnPropsType = {}
24472447
interface Comp1Props extends Comp1TStatePropsType {
2448-
children: JSX.Element
2448+
children: JSX.Element | JSX.Element[]
24492449
}
24502450
const Comp3 = ({ first }: Comp3TStatePropsType) => {
24512451
c3Spy()
@@ -2473,7 +2473,7 @@ describe('React', () => {
24732473
type Comp1NoDispatchType = NoDispatchType
24742474
type Comp1OwnPropsType = {}
24752475
interface Comp1Props extends Comp1TStatePropsType {
2476-
children: JSX.Element
2476+
children: JSX.Element | JSX.Element[]
24772477
}
24782478
const Comp1 = ({ children, first }: Comp1Props) => {
24792479
c1Spy()

0 commit comments

Comments
 (0)