UNPKG

svgo

Version:

SVGO is a Node.js library and command-line application for optimizing vector images.

11 lines (10 loc) 667 B
export * from "./svgo.js"; /** * If you write a tool on top of svgo you might need a way to load svgo config. * You can also specify relative or absolute path and customize current working * directory. * * @type {<T extends string | null>(configFile?: T, cwd?: string) => Promise<T extends string ? import('./svgo.js').Config : import('./svgo.js').Config | null>} */ export const loadConfig: <T extends string | null>(configFile?: T, cwd?: string) => Promise<T extends string ? import("./svgo.js").Config : import("./svgo.js").Config | null>; export function optimize(input: string, config?: import("./svgo.js").Config | undefined): import("./svgo.js").Output;