Function downloadBlank

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)
        • (dto): void
        • Parameters

          • dto: {
                name: string;
                url: string;
            }
            • name: string
            • url: string

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Parameters

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

          • url: string
          • name: string

          Returns void

    Returns void