In @0x/typescript-typings: Add types for @0x/dev-utils chai helpers in types/@0x.

In `@0x/dev-utils`: remove global typescript types for chai helpers in lieu of defining them in `@0x/typescript-typings`
This commit is contained in:
Lawrence Forman 2019-04-04 15:45:29 -04:00 committed by Amir Bandeali
parent f06f0785f1
commit 162a812189
3 changed files with 16 additions and 8 deletions

View File

@ -1,13 +1,6 @@
import { AnyRevertError, RevertError, StringRevertError } from '@0x/utils';
// tslint:disable no-namespace only-arrow-functions prefer-conditional-expression
declare global {
export namespace Chai {
export interface Assertion {
revertWith: (expected: string | RevertError) => Promise<void>;
}
}
}
// tslint:disable only-arrow-functions prefer-conditional-expression
type ChaiPromiseHandler = (x: any, ...rest: any[]) => Promise<void>;
type ChaiAssertHandler = (x: any, ...rest: any[]) => void;

View File

@ -1,4 +1,13 @@
[
{
"version": "4.3.0",
"changes": [
{
"note": "Add types for `@0x/dev-utils` chai helpers in `types/@0x`",
"pr": TODO
}
]
},
{
"timestamp": 1563006338,
"version": "4.2.3",

View File

@ -0,0 +1,6 @@
// tslint:disable: no-namespace
declare namespace Chai {
interface Assertion {
revertWith: (expected: string | RevertError) => Promise<void>;
}
}