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();