UNPKG

@openfin/automation-helpers

Version:

Helper methods for automation testing in the OpenFin ecosystem

19 lines (18 loc) 474 B
/** * Fetch a url as as buffer. * @param url The url to fetch. * @returns The buffer. */ export declare function fetchBuffer(url: string): Promise<Buffer>; /** * Fetch a url as as text. * @param url The url to fetch. * @returns The text. */ export declare function fetchText(url: string): Promise<string>; /** * Fetch a url as a JSON object. * @param url The url to fetch. * @returns The object. */ export declare function fetchJson<T>(url: string): Promise<T>;