From 230d054ef183c7554233ab4af2c3e143fffc7b27 Mon Sep 17 00:00:00 2001 From: Job Date: Mon, 16 Dec 2019 13:03:04 +0100 Subject: [PATCH] detox: expect returns a promise (#40987) --- types/detox/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/detox/index.d.ts b/types/detox/index.d.ts index bd123c9dbe..e2fd2024ef 100644 --- a/types/detox/index.d.ts +++ b/types/detox/index.d.ts @@ -11,7 +11,7 @@ declare global { const detox: Detox.Detox; const element: Detox.Element; const waitFor: Detox.WaitFor; - const expect: Detox.Expect>; + const expect: Detox.Expect>>; const by: Detox.Matchers; namespace Detox { @@ -51,7 +51,7 @@ declare global { device: Device; element: Element; waitFor: WaitFor; - expect: Expect>; + expect: Expect>>; by: Matchers; } @@ -288,7 +288,7 @@ declare global { and(by: Matchers): Matchers; } interface Expect { - (element: Element): Expect; + (element: Element): Expect>; /** * Expect the view to be at least 75% visible. * @example await expect(element(by.id('UniqueId204'))).toBeVisible();