Skip to content

Commit

Permalink
feat: export type CustomPlugin and PluginConfig (#2081)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq authored Oct 21, 2024
1 parent a8472bc commit c372b36
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 c372b36

Please sign in to comment.