Skip to content

Commit e0ed0cb

Browse files
committed
fix(toolkit): broken toolkit type tests
1 parent d63a52d commit e0ed0cb

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

docs/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"@manaflair/redux-batch": "^1.0.0",
55
"@types/nanoid": "^2.1.0",
66
"@types/react": "^16.9.46",
7-
"@types/react-redux": "^7.1.9",
87
"@types/redux-logger": "^3.0.8",
98
"async-mutex": "^0.3.2",
109
"axios": "^0.20.0",
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Not available on old TS versions but used by `@testing-library/user-event`
2+
// @see https://stackoverflow.com/a/61505395
3+
declare class ClipboardItem {
4+
constructor(data: { [mimeType: string]: Blob })
5+
}

packages/toolkit/tsconfig.test.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
"baseUrl": ".",
1414
"skipLibCheck": false,
1515
"noImplicitReturns": false
16-
}
16+
},
17+
"include": ["./setup-type-tests.d.ts"]
1718
}

yarn.lock

+1-14
Original file line numberDiff line numberDiff line change
@@ -6469,7 +6469,7 @@ __metadata:
64696469
languageName: node
64706470
linkType: hard
64716471

6472-
"@types/hoist-non-react-statics@npm:^3.3.0, @types/hoist-non-react-statics@npm:^3.3.1":
6472+
"@types/hoist-non-react-statics@npm:^3.3.1":
64736473
version: 3.3.1
64746474
resolution: "@types/hoist-non-react-statics@npm:3.3.1"
64756475
dependencies:
@@ -6825,18 +6825,6 @@ __metadata:
68256825
languageName: node
68266826
linkType: hard
68276827

6828-
"@types/react-redux@npm:^7.1.9":
6829-
version: 7.1.16
6830-
resolution: "@types/react-redux@npm:7.1.16"
6831-
dependencies:
6832-
"@types/hoist-non-react-statics": ^3.3.0
6833-
"@types/react": "*"
6834-
hoist-non-react-statics: ^3.3.0
6835-
redux: ^4.0.0
6836-
checksum: c07ee677be781df70aa6209d4152373ec470f6c99b50051e302add8b57d49e89322250959bf9e192738cccc5dbbe05c77514339a45b46ec973c8326227408f26
6837-
languageName: node
6838-
linkType: hard
6839-
68406828
"@types/react@npm:18.0.12":
68416829
version: 18.0.12
68426830
resolution: "@types/react@npm:18.0.12"
@@ -11785,7 +11773,6 @@ __metadata:
1178511773
"@manaflair/redux-batch": ^1.0.0
1178611774
"@types/nanoid": ^2.1.0
1178711775
"@types/react": ^16.9.46
11788-
"@types/react-redux": ^7.1.9
1178911776
"@types/redux-logger": ^3.0.8
1179011777
async-mutex: ^0.3.2
1179111778
axios: ^0.20.0

0 commit comments

Comments
 (0)