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:
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;
|
||||
|
@ -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",
|
||||
|
6
packages/typescript-typings/types/@0x/index.d.ts
vendored
Normal file
6
packages/typescript-typings/types/@0x/index.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
// tslint:disable: no-namespace
|
||||
declare namespace Chai {
|
||||
interface Assertion {
|
||||
revertWith: (expected: string | RevertError) => Promise<void>;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user