Skip to content

Commit 66d68cc

Browse files
committed
fix: typescript3.9 error
1 parent 3e65176 commit 66d68cc

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"rollup": "^2.32.1",
111111
"rollup-plugin-terser": "^7.0.2",
112112
"ts-jest": "26.5.6",
113-
"typescript": "^4.3.4"
113+
"typescript": "3.9"
114114
},
115115
"browserify": {
116116
"transform": [

test/hooks/useSelector.spec.tsx

Lines changed: 2 additions & 1 deletion
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

yarn.lock

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14537,7 +14537,7 @@ __metadata:
1453714537
rollup: ^2.32.1
1453814538
rollup-plugin-terser: ^7.0.2
1453914539
ts-jest: 26.5.6
14540-
typescript: ^4.3.4
14540+
typescript: 3.9
1454114541
peerDependencies:
1454214542
react: ^16.8.3 || ^17
1454314543
peerDependenciesMeta:
@@ -17084,7 +17084,17 @@ __metadata:
1708417084
languageName: node
1708517085
linkType: hard
1708617086

17087-
"typescript@npm:^4.3.4, typescript@npm:~4.3.2":
17087+
"typescript@npm:3.9":
17088+
version: 3.9.10
17089+
resolution: "typescript@npm:3.9.10"
17090+
bin:
17091+
tsc: bin/tsc
17092+
tsserver: bin/tsserver
17093+
checksum: 544f3810ac3d3fcd141907e7f52f0b8c70af178adc83af47e2b8a48351e5a119919a4d3bfbe2f62d5165b5aa203e896fe0432024cfbda670dbd03a4f53ce7748
17094+
languageName: node
17095+
linkType: hard
17096+
17097+
"typescript@npm:~4.3.2":
1708817098
version: 4.3.5
1708917099
resolution: "typescript@npm:4.3.5"
1709017100
bin:

0 commit comments

Comments
 (0)