Downloads a file from the given URL with the specified name. If overrideRef is defined, it will be invoked before initiating the download. The file will be downloaded in a new browser tab or window.

  • Parameters

    • url: string

      The URL of the file to download.

    • name: string

      The name to be used for the downloaded file.

    Returns Promise<void>

Methods

  • Parameters

    • fn: (dto: { name: string; url: string }) => void

    Returns () => void

  • Parameters

    • ref: (url: string, name: string) => void

    Returns void