Urara-Blog/node_modules/.pnpm-store/v3/files/6c/47fac6b4f033863f8dfe5823d75116d103c782607d463ff0e50d6fb847eab9333b794e421bc20109ec69f8f07682263a56366fe4b8799efba56a5560154b47
2022-08-14 01:14:53 +08:00

45 lines
902 B
Text

import { IconifyJSON } from '@iconify/types';
/**
* Minify icon set
*
* Function finds common values for few numeric properties, such as 'width' and 'height' (see iconDefaults keys for list of properties),
* removes entries from icons and sets default entry in root of icon set object.
*
* For example, this:
* {
* icons: {
* foo: {
* body: '<g />',
* width: 24
* },
* bar: {
* body: '<g />',
* width: 24
* },
* baz: {
* body: '<g />',
* width: 16
* }
* }
* }
* is changed to this:
* {
* icons: {
* foo: {
* body: '<g />'
* },
* bar: {
* body: '<g />'
* },
* baz: {
* body: '<g />',
* width: 16
* }
* },
* width: 24
* }
*/
declare function minifyIconSet(data: IconifyJSON): void;
export { minifyIconSet };