Docs

IThirdwebStorage

type IThirdwebStorage = {
download: (
url: string,
options?: SingleDownloadOptions,
) => Promise<Response>;
downloadJSON: (url: string) => Promise<TJSON>;
getGatewayUrls: () => GatewayUrls;
resolveScheme: (url: string) => string;
upload: (data: any, options?: {}) => Promise<string>;
uploadBatch: (
data: Array<any>,
options?: {},
) => Promise<Array<string>>;
};