diff --git a/lib/expect/jest.matcher.function.ts b/lib/expect/jest.matcher.function.ts index f9cd69b..d803779 100644 --- a/lib/expect/jest.matcher.function.ts +++ b/lib/expect/jest.matcher.function.ts @@ -8,9 +8,12 @@ import { FindInput } from "../screen.class"; declare global { namespace jest { interface Matchers { - toBeAt: (position: Point) => {}; - toBeIn: (region: Region) => {}; - toShow: (needle: FindInput, confidence?: number) => {}; + toBeAt: (position: Point) => ReturnType; + toBeIn: (region: Region) => ReturnType; + toShow: ( + needle: FindInput, + confidence?: number + ) => ReturnType; } } }