Skip to content

Commit b327450

Browse files
committed
revert @types/jest change
1 parent afe3cdf commit b327450

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"@types/buffer-from": "latest",
8080
"@types/cross-spawn": "latest",
8181
"@types/fs-extra": "latest",
82-
"@types/jest": "24.x",
82+
"@types/jest": "23.x",
8383
"@types/js-yaml": "latest",
8484
"@types/json5": "latest",
8585
"@types/lodash.memoize": "4.x",

src/util/testing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
interface MockWithArgs<T> extends Function, jest.MockInstance<T, any> {
1+
interface MockWithArgs<T> extends Function, jest.MockInstance<T> {
22
new (...args: ArgumentsOf<T>): T
33
(...args: ArgumentsOf<T>): any
44
}
@@ -8,7 +8,7 @@ type MethodKeysOf<T> = { [K in keyof T]: T[K] extends Function ? K : never }[key
88
// tslint:disable-next-line:ban-types
99
type PropertyKeysOf<T> = { [K in keyof T]: T[K] extends Function ? never : K }[keyof T]
1010
type ArgumentsOf<T> = T extends (...args: infer A) => any ? A : never
11-
interface MockWithArgs<T> extends Function, jest.MockInstance<T, any> {
11+
interface MockWithArgs<T> extends Function, jest.MockInstance<T> {
1212
new (...args: ArgumentsOf<T>): T
1313
(...args: ArgumentsOf<T>): any
1414
}

0 commit comments

Comments
 (0)