Skip to content

Commit

Permalink
fix(repo): Update Svgo imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sullivanpj committed Nov 12, 2022
1 parent cdfb2ce commit 8d2245a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { DefaultPlugins, DefaultPresetPlugins } from 'svgo';
import { DefaultPlugin, PresetDefault } from 'svgo';
import type { default as SVGOV1 } from '../../types/svgo.v1';

export type DefaultPresetPluginsName = DefaultPresetPlugins['name'];
export type DefaultPresetPluginsName = PresetDefault['name'];

export type DefaultPresetPluginsParams = DefaultPresetPlugins['params'];
export type DefaultPresetPluginsParams = PresetDefault['params'];

export type DefaultPresetOverride = {
[P in DefaultPresetPluginsName]?: false | DefaultPresetPluginsParams;
};

export type PluginV2 = DefaultPlugins | DefaultPlugins['name'];
export type PluginV2 = DefaultPlugin | DefaultPlugin['name'];
export type PluginV1 = SVGOV1.PluginConfig;
export type Plugins = Array<PluginV1> | Array<PluginV2>;

Expand Down

0 comments on commit 8d2245a

Please sign in to comment.