Skip to content

Commit

Permalink
feat: export type CustomPlugin and PluginConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq committed Oct 15, 2024
1 parent a8472bc commit 43ae38a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/svgo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import type {
PluginsParams,
} from '../plugins/plugins-types.js';

type CustomPlugin<T = any> = {
export type CustomPlugin<T = any> = {
name: string;
fn: Plugin<T>;
params?: T;
};

type PluginConfig =
export type PluginConfig =
| keyof BuiltinsWithOptionalParams
| {
[Name in keyof BuiltinsWithOptionalParams]: {
Expand Down

0 comments on commit 43ae38a

Please sign in to comment.