@bitpatty/imgproxy-url-builder
Version:
A TypeScript helper library for building imgproxy URLs
17 lines (16 loc) • 581 B
TypeScript
/**
* The CSS styles to apply to the source SVG image
*/
type StyleOptions = Record<string, string | number> | string;
/**
* Prepend a `<style>` node with the provided CSS styles to the
* `<svg>` node of a source SVG image.
*
* See https://github.com/imgproxy/imgproxy/blob/6f292443eafb2e39f9252175b61faa6b38105a7c/docs/generating_the_url.md#style-idstyle for the imgproxy documentation
*
* @param styles The styles to apply
* @returns The style param string
*/
declare const style: (styles: StyleOptions) => string;
export default style;
export { StyleOptions };