Skip to content

Commit 79cbb10

Browse files
committed
fix: only fix typescript3.9 error
1 parent f1ba38a commit 79cbb10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/hooks/useSelector.spec.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ describe('React', () => {
5757
})
5858

5959
it('selects the state and renders the component when the store updates', () => {
60-
const selector: jest.Mock<number, [s: NormalStateType]> = jest.fn(
60+
type MockParams = [NormalStateType]
61+
const selector: jest.Mock<number, MockParams> = jest.fn(
6162
(s) => s.count
6263
)
6364

0 commit comments

Comments
 (0)