UNPKG

@bitpatty/imgproxy-url-builder

Version:

A TypeScript helper library for building imgproxy URLs

17 lines (16 loc) 575 B
/** * The file name */ type FileNameOptions = string; /** * Sets the filename for the Content-Disposition header. * * See https://github.com/imgproxy/imgproxy/blob/41b9ebe9277ef3e664e0a842fbc0e912b2640969/docs/generating_the_url.md#filename for the imgproxy documentation * * @param name The filename * @param base64Encoded Whether the file name is base64 encoded * @returns The filename param string */ declare const fileName: (name: FileNameOptions, base64Encoded?: boolean) => string; export default fileName; export { FileNameOptions };