Update ethers typings for TypeScript 2.9.2

This commit is contained in:
Alex Browne 2018-08-08 14:52:05 -07:00
parent 09af23f950
commit 44b01f2069
No known key found for this signature in database
GPG Key ID: 7974B08A447ABE31

View File

@ -49,7 +49,7 @@ declare module 'ethers' {
};
export interface AbiCoder {
encode: (names?: ParamName[], types: string[], args: any[]) => string;
decode: (names?: ParamName[], types: string[], data: string) => any;
encode: (names: ParamName[] | string[], types: string[] | any[], args: any[] | undefined) => string;
decode: (names: ParamName[] | string[], types: string[] | string, data: string | undefined) => any;
}
}