Add contracts to packages, fix most linting errors

This commit is contained in:
Amir Bandeali
2017-11-29 22:02:43 -08:00
parent c57190dead
commit 4b3e038323
104 changed files with 14544 additions and 27 deletions

19
packages/contracts/globalsAugment.d.ts vendored Normal file
View File

@@ -0,0 +1,19 @@
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 {
(value: number | BigNumber, message?: string): Assertion;
}
interface NumericComparison {
greaterThan: NumberComparer;
}
}
/* tslint:enable */
}