Add comment for new dexpect constant.

This commit is contained in:
Christian Bär
2019-01-21 16:06:11 +01:00
parent 457e3f9b7a
commit 243426f985
+6
View File
@@ -8,6 +8,12 @@ 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<Detox.Expect<any>>;
const expect: Detox.Expect<Detox.Expect<any>>;
const by: Detox.Matchers;