UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

15 lines 766 B
export declare function fetchBlob(url: string): Promise<Blob>; export declare function releaseResourceUrl(resourceUrl: string): void; /** * Custom hook for retrieving a resource and assigning it a localhost URL. This is useful for * fetching resources from URLs that may expire before the resource renders. * @param preSignedURL * @returns a localhost URL referencing the prefetched resource */ export default function usePreFetchResource(preSignedURL?: string): string | undefined; /** * Uses URL.createObjectURL to create a URL for the given blob. When this hook unmounts, the URL is released. * @param blob */ export declare function useCreateUrlForData(blob: Blob | null | undefined): string | undefined; //# sourceMappingURL=usePreFetchResource.d.ts.map