(#466) Updated typings of custom Jest matchers to Promise result (#467)

This commit is contained in:
Simon Hofmann
2023-01-17 02:14:56 +01:00
committed by GitHub
parent 9644114bb0
commit bdaf314320
+6 -3
View File
@@ -8,9 +8,12 @@ import { FindInput } from "../screen.class";
declare global {
namespace jest {
interface Matchers<R> {
toBeAt: (position: Point) => {};
toBeIn: (region: Region) => {};
toShow: (needle: FindInput, confidence?: number) => {};
toBeAt: (position: Point) => ReturnType<typeof toBeAt>;
toBeIn: (region: Region) => ReturnType<typeof toBeIn>;
toShow: (
needle: FindInput,
confidence?: number
) => ReturnType<typeof toShow>;
}
}
}