From 144456503ce2ff476c050f88af30e3a5f07f907e Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 29 May 2017 12:19:50 +0200 Subject: Make eventually a PromisedAssertion --- src/globals.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/globals.d.ts b/src/globals.d.ts index dee957f2f..4c9adcd48 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -15,7 +15,8 @@ declare interface Schema { declare namespace Chai { interface Assertion { bignumber: Assertion; - eventually: Assertion; + // HACK: In order t comply with chai-as-promised we make eventually a PromisedAssertion not an assertion + eventually: PromisedAssertion; } } /* tslint:enable */ -- cgit v1.2.3 From 7bd3d87f7a7d7c54b08e3e62b8075ec569498c63 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 29 May 2017 15:54:52 +0200 Subject: Address feedback --- src/globals.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/globals.d.ts b/src/globals.d.ts index 4c9adcd48..0062a05cb 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -15,7 +15,7 @@ declare interface Schema { declare namespace Chai { interface Assertion { bignumber: Assertion; - // HACK: In order t comply with chai-as-promised we make eventually a PromisedAssertion not an assertion + // HACK: In order to comply with chai-as-promised we make eventually a `PromisedAssertion` not an `Assertion` eventually: PromisedAssertion; } } -- cgit v1.2.3