From 8109dbd2d8e3d9e2bbafb0910c4b134ba1eac892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20B=C3=A4r?= Date: Fri, 1 Feb 2019 16:46:48 +0100 Subject: [PATCH] Change dexpect to not be global any more. --- types/detox/index.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/types/detox/index.d.ts b/types/detox/index.d.ts index bcf914fac4..8893aed159 100644 --- a/types/detox/index.d.ts +++ b/types/detox/index.d.ts @@ -8,14 +8,8 @@ declare global { const device: Detox.Device; const element: Detox.Element; const waitFor: Detox.WaitFor; - /** - * `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. - */ - const dexpect: Detox.Expect>; const expect: Detox.Expect>; + const ffffexpect: Detox.Expect>; const by: Detox.Matchers; namespace Detox { @@ -441,4 +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, dexpect as expect, waitFor };