UNPKG

piral-base

Version:

The base library for creating a Piral instance.

9 lines (8 loc) 331 B
/** * Uses the `fetch` function (must be available). If you * use this function make sure to use, e.g., `whatwg-fetch` * which comes with polyfills for older browsers. * @param url The URL to GET. * @returns A promise leading to the raw text content. */ export declare function fetchDependency(url: string): Promise<string>;