It appears you have a well-structured Git repository with various files, including SVG icons and HTML documents. Here's a brief overview:
This commit is contained in:
69
backend/node_modules/svgo/lib/svgo.d.ts
generated
vendored
Normal file
69
backend/node_modules/svgo/lib/svgo.d.ts
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
import type { StringifyOptions, DataUri, Plugin as PluginFn } from './types';
|
||||
import type {
|
||||
BuiltinsWithOptionalParams,
|
||||
BuiltinsWithRequiredParams,
|
||||
} from '../plugins/plugins-types';
|
||||
|
||||
type CustomPlugin = {
|
||||
name: string;
|
||||
fn: PluginFn<void>;
|
||||
};
|
||||
|
||||
type PluginConfig =
|
||||
| keyof BuiltinsWithOptionalParams
|
||||
| {
|
||||
[Name in keyof BuiltinsWithOptionalParams]: {
|
||||
name: Name;
|
||||
params?: BuiltinsWithOptionalParams[Name];
|
||||
};
|
||||
}[keyof BuiltinsWithOptionalParams]
|
||||
| {
|
||||
[Name in keyof BuiltinsWithRequiredParams]: {
|
||||
name: Name;
|
||||
params: BuiltinsWithRequiredParams[Name];
|
||||
};
|
||||
}[keyof BuiltinsWithRequiredParams]
|
||||
| CustomPlugin;
|
||||
|
||||
export type Config = {
|
||||
/** Can be used by plugins, for example prefixids */
|
||||
path?: string;
|
||||
/** Pass over SVGs multiple times to ensure all optimizations are applied. */
|
||||
multipass?: boolean;
|
||||
/** Precision of floating point numbers. Will be passed to each plugin that supports this param. */
|
||||
floatPrecision?: number;
|
||||
/**
|
||||
* Plugins configuration
|
||||
* ['preset-default'] is default
|
||||
* Can also specify any builtin plugin
|
||||
* ['sortAttrs', { name: 'prefixIds', params: { prefix: 'my-prefix' } }]
|
||||
* Or custom
|
||||
* [{ name: 'myPlugin', fn: () => ({}) }]
|
||||
*/
|
||||
plugins?: PluginConfig[];
|
||||
/** Options for rendering optimized SVG from AST. */
|
||||
js2svg?: StringifyOptions;
|
||||
/** Output as Data URI string. */
|
||||
datauri?: DataUri;
|
||||
};
|
||||
|
||||
type Output = {
|
||||
data: string;
|
||||
};
|
||||
|
||||
/** The core of SVGO */
|
||||
export declare function optimize(input: string, config?: Config): Output;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
export declare function loadConfig(
|
||||
configFile: string,
|
||||
cwd?: string,
|
||||
): Promise<Config>;
|
||||
export declare function loadConfig(
|
||||
configFile?: null,
|
||||
cwd?: string,
|
||||
): Promise<Config | null>;
|
Reference in New Issue
Block a user