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:
committed by
Amir Bandeali
parent
f06f0785f1
commit
162a812189
@@ -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;
|
||||
|
Reference in New Issue
Block a user