Skip to content

Commit bdaf314

Browse files
authored
(#466) Updated typings of custom Jest matchers to Promise result (#467)
1 parent 9644114 commit bdaf314

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: lib/expect/jest.matcher.function.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ import { FindInput } from "../screen.class";
88
declare global {
99
namespace jest {
1010
interface Matchers<R> {
11-
toBeAt: (position: Point) => {};
12-
toBeIn: (region: Region) => {};
13-
toShow: (needle: FindInput, confidence?: number) => {};
11+
toBeAt: (position: Point) => ReturnType<typeof toBeAt>;
12+
toBeIn: (region: Region) => ReturnType<typeof toBeIn>;
13+
toShow: (
14+
needle: FindInput,
15+
confidence?: number
16+
) => ReturnType<typeof toShow>;
1417
}
1518
}
1619
}

0 commit comments

Comments
 (0)