Skip to content

Commit

Permalink
revert @types/jest change
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee committed Feb 14, 2019
1 parent afe3cdf commit b327450
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"@types/buffer-from": "latest",
"@types/cross-spawn": "latest",
"@types/fs-extra": "latest",
"@types/jest": "24.x",
"@types/jest": "23.x",
"@types/js-yaml": "latest",
"@types/json5": "latest",
"@types/lodash.memoize": "4.x",
Expand Down
4 changes: 2 additions & 2 deletions src/util/testing.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface MockWithArgs<T> extends Function, jest.MockInstance<T, any> {
interface MockWithArgs<T> extends Function, jest.MockInstance<T> {
new (...args: ArgumentsOf<T>): T
(...args: ArgumentsOf<T>): any
}
Expand All @@ -8,7 +8,7 @@ type MethodKeysOf<T> = { [K in keyof T]: T[K] extends Function ? K : never }[key
// tslint:disable-next-line:ban-types
type PropertyKeysOf<T> = { [K in keyof T]: T[K] extends Function ? never : K }[keyof T]
type ArgumentsOf<T> = T extends (...args: infer A) => any ? A : never
interface MockWithArgs<T> extends Function, jest.MockInstance<T, any> {
interface MockWithArgs<T> extends Function, jest.MockInstance<T> {
new (...args: ArgumentsOf<T>): T
(...args: ArgumentsOf<T>): any
}
Expand Down

0 comments on commit b327450

Please sign in to comment.