Skip to content

Commit

Permalink
fix: typescript3.9 error
Browse files Browse the repository at this point in the history
  • Loading branch information
myNameIsDu committed Jul 19, 2021
1 parent 3e65176 commit 66d68cc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -110,7 +110,7 @@
"rollup": "^2.32.1",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "26.5.6",
"typescript": "^4.3.4"
"typescript": "3.9"
},
"browserify": {
"transform": [
Expand Down
3 changes: 2 additions & 1 deletion test/hooks/useSelector.spec.tsx
Expand Up @@ -57,7 +57,8 @@ describe('React', () => {
})

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

Expand Down
14 changes: 12 additions & 2 deletions yarn.lock
Expand Up @@ -14537,7 +14537,7 @@ __metadata:
rollup: ^2.32.1
rollup-plugin-terser: ^7.0.2
ts-jest: 26.5.6
typescript: ^4.3.4
typescript: 3.9
peerDependencies:
react: ^16.8.3 || ^17
peerDependenciesMeta:
Expand Down Expand Up @@ -17084,7 +17084,17 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^4.3.4, typescript@npm:~4.3.2":
"typescript@npm:3.9":
version: 3.9.10
resolution: "typescript@npm:3.9.10"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 544f3810ac3d3fcd141907e7f52f0b8c70af178adc83af47e2b8a48351e5a119919a4d3bfbe2f62d5165b5aa203e896fe0432024cfbda670dbd03a4f53ce7748
languageName: node
linkType: hard

"typescript@npm:~4.3.2":
version: 4.3.5
resolution: "typescript@npm:4.3.5"
bin:
Expand Down

0 comments on commit 66d68cc

Please sign in to comment.