ethers.js/src/utils/web.d.ts
2018-06-13 15:39:39 -04:00

9 lines
304 B
TypeScript

export declare type ConnectionInfo = {
url: string;
user?: string;
password?: string;
allowInsecure?: boolean;
};
export declare type ProcessFunc = (value: any) => any;
export declare function fetchJson(url: string | ConnectionInfo, json: string, processFunc: ProcessFunc): Promise<any>;