Skip to content

Commit

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

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

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

"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":
"typescript@npm:^4.3.4, typescript@npm:~4.3.2":
version: 4.3.5
resolution: "typescript@npm:4.3.5"
bin:
Expand Down

0 comments on commit f1ba38a

Please sign in to comment.