Umi — API References - v1.3.0
    Preparing search index...

    Interface DownloaderInterface

    Defines the interface for a downloader. It allows us to fetch files from given URIs.

    interface DownloaderInterface {
        download: (
            uris: string[],
            options?: DownloaderOptions,
        ) => Promise<GenericFile[]>;
        downloadJson: <T>(uri: string, options?: DownloaderOptions) => Promise<T>;
    }
    Index

    Properties

    download: (
        uris: string[],
        options?: DownloaderOptions,
    ) => Promise<GenericFile[]>

    Downloads multiple files from a list of URIs.

    downloadJson: <T>(uri: string, options?: DownloaderOptions) => Promise<T>

    Downloads and parses a JSON file from a given URI.