Downloads a file from the specified URI.
import { download } from "thirdweb/storage";const file = await download({ client, uri: "ipfs://Qm...",});
function download(options: { client: ThirdwebClient; requestTimeoutMs?: number; uri: string;}): Promise<Response>;
The download options.
let options: { client: ThirdwebClient; requestTimeoutMs?: number; uri: string;};
let returnType: Promise<Response>;
A Promise that resolves to the downloaded file.