diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-26 04:04:17 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-26 04:04:17 +0800 |
commit | 122a5e9b63b5b3617ad63a56b0673fd9dd974208 (patch) | |
tree | d1a719dd67857d2555369d9b377518061798b597 | |
parent | 5d759d82ed6abbd9a8bbdb70167dfbe649dca62e (diff) | |
download | dexon-sol-tools-122a5e9b63b5b3617ad63a56b0673fd9dd974208.tar dexon-sol-tools-122a5e9b63b5b3617ad63a56b0673fd9dd974208.tar.gz dexon-sol-tools-122a5e9b63b5b3617ad63a56b0673fd9dd974208.tar.bz2 dexon-sol-tools-122a5e9b63b5b3617ad63a56b0673fd9dd974208.tar.lz dexon-sol-tools-122a5e9b63b5b3617ad63a56b0673fd9dd974208.tar.xz dexon-sol-tools-122a5e9b63b5b3617ad63a56b0673fd9dd974208.tar.zst dexon-sol-tools-122a5e9b63b5b3617ad63a56b0673fd9dd974208.zip |
Add HACK comments
-rw-r--r-- | src/globalsAugment.d.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/globalsAugment.d.ts b/src/globalsAugment.d.ts index bb8cd625d..60e2312a3 100644 --- a/src/globalsAugment.d.ts +++ b/src/globalsAugment.d.ts @@ -1,6 +1,11 @@ import BigNumber from 'bignumber.js'; +// HACK: This module overrides the Chai namespace so that we can use BigNumber types inside. +// Source: https://github.com/Microsoft/TypeScript/issues/7352#issuecomment-191547232 declare global { + // HACK: In order to merge the bignumber declaration added by chai-bignumber to the chai Assertion + // interface we must use `namespace` as the Chai definitelyTyped definition does. Since we otherwise + // disallow `namespace`, we disable tslint for the following. /* tslint:disable */ namespace Chai { interface NumberComparer { |