UNPKG

@bitpatty/imgproxy-url-builder

Version:

A TypeScript helper library for building imgproxy URLs

19 lines (18 loc) 624 B
/** * The zoom level. Can either be specified for both X/Y or * as an array in the format [x zoom level, y zoom level] */ type ZoomOptions = number | [number, number]; /** * Multiply the image dimensions according to the specified factors. * * See https://github.com/imgproxy/imgproxy/blob/6f292443eafb2e39f9252175b61faa6b38105a7c/docs/generating_the_url.md#zoom for the imgproxy documentation * * The values must be greater than 0. * * @param options The zoom options * @returns The zoom param string */ declare const zoom: (options: ZoomOptions) => string; export default zoom; export { ZoomOptions };