Octra libraries - v2.0.0
    Preparing search index...

    Function downloadFile

    • downloads a file from a given URL and a given type for the result.

      Type Parameters

      • T extends string | object | ArrayBuffer | Document | Blob

      Parameters

      • url: string

        target URL

      • type: XMLHttpRequestResponseType = 'text'

        type of the result

      • Optionalheaders: Record<string, any>

        optional headers

      Returns Promise<T>