@bitpatty/imgproxy-url-builder
Version:
A TypeScript helper library for building imgproxy URLs
16 lines (15 loc) • 562 B
TypeScript
/**
* The fallback image URL
*/
type FallbackImageUrlOptions = string;
/**
* Sets a custom fallback image by specifying its URL.
*
* See https://github.com/imgproxy/imgproxy/blob/6f292443eafb2e39f9252175b61faa6b38105a7c/docs/generating_the_url.md#fallback-image-url-idfallback-image-url for the imgproxy documentation
*
* @param url The fallback image URL
* @returns The fallback image URL param string
*/
declare const fallbackImageUrl: (url: FallbackImageUrlOptions) => string;
export default fallbackImageUrl;
export { FallbackImageUrlOptions };