We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9644114 commit bdaf314Copy full SHA for bdaf314
lib/expect/jest.matcher.function.ts
@@ -8,9 +8,12 @@ import { FindInput } from "../screen.class";
8
declare global {
9
namespace jest {
10
interface Matchers<R> {
11
- toBeAt: (position: Point) => {};
12
- toBeIn: (region: Region) => {};
13
- toShow: (needle: FindInput, confidence?: number) => {};
+ toBeAt: (position: Point) => ReturnType<typeof toBeAt>;
+ toBeIn: (region: Region) => ReturnType<typeof toBeIn>;
+ toShow: (
14
+ needle: FindInput,
15
+ confidence?: number
16
+ ) => ReturnType<typeof toShow>;
17
}
18
19
0 commit comments