From 64bbd5d77396e715984fb13263bc9a71f38aff65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20B=C3=A4r?= Date: Fri, 1 Feb 2019 17:21:28 +0100 Subject: [PATCH] Removed dexpect because of linting error --- types/detox/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/detox/index.d.ts b/types/detox/index.d.ts index 8893aed159..b934cd4723 100644 --- a/types/detox/index.d.ts +++ b/types/detox/index.d.ts @@ -435,10 +435,10 @@ declare global { } } -// `dexpect` ("Detox-expect") intentionally has the same type as `expect`. -// `expect` conflicts with the global `expect` of jest and therefore -// exporting it doesn't work which is why `dexpect` was introduced. `expect` -// is kept for backwards compatibility. -declare const dexpect: Detox.Expect>; +export { by, detox, device, element, waitFor }; -export { by, detox, device, element, dexpect as expect, waitFor }; +// Not exporting the global `expect` from the top of the file here +// because `expect` conflicts with the global `expect` of jest and +// therefore exporting it doesn't work. The global `expect` is kept +// for backwards compatibility though. +export const expect: Detox.Expect>;