MyCrypto/common/typescript/ethjs-util.d.ts
HenryNguyen5 c340246ca0 Enable no-implicit-any (#1263)
* Progress commit

* Update more types

* Fix more types

* Fix abi function types

* Fix lib types

* Fix rest of types

* Address wbobeirne changes

* Change origin and destination check
2018-03-07 17:36:05 -06:00

16 lines
782 B
TypeScript

declare module 'ethjs-util' {
export function arrayContainsArray(arrayA: any[], arrayB: any[]): Boolean;
export function getBinarySize(num: string): number;
export function intToBuffer(integer: number): Buffer;
export function isHexPrefixed(hex: string): boolean;
export function stripHexPrefix(hexWithPrefix: string): string;
export function padToEven(unpaddedNumber: string): string;
export function intToHex(integer: number): string;
export function fromAscii(ascii: string): string;
export function fromUtf8(utf8: string): string;
export function toAscii(nonAscii: string): string;
export function toUtf8(nonUtf8: string): string;
export function getKeys(keys: any[], query: string): any[];
export function isHexString(inputString: string): boolean;
}