From 79cbb10323d5c4c9f0958cc476a7a723aa176381 Mon Sep 17 00:00:00 2001 From: du Date: Mon, 19 Jul 2021 20:30:10 +0800 Subject: [PATCH] fix: only fix typescript3.9 error --- test/hooks/useSelector.spec.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/hooks/useSelector.spec.tsx b/test/hooks/useSelector.spec.tsx index 961226ac0..b8c7697f4 100644 --- a/test/hooks/useSelector.spec.tsx +++ b/test/hooks/useSelector.spec.tsx @@ -57,7 +57,8 @@ describe('React', () => { }) it('selects the state and renders the component when the store updates', () => { - const selector: jest.Mock = jest.fn( + type MockParams = [NormalStateType] + const selector: jest.Mock = jest.fn( (s) => s.count )