Skip to content

Commit

Permalink
chore: use concrete types for generics (svg#2034)
Browse files Browse the repository at this point in the history
  • Loading branch information
SethFalco authored Jun 13, 2024
1 parent 65d0a52 commit 8d777dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/svgo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type BuiltinPluginOrPreset<Name, Params> = BuiltinPlugin<Name, Params> & {
* If the plugin is a preset that invokes other plugins, this returns an
* array of the plugins in the preset in the order that they are invoked.
*/
plugins?: Readonly<BuiltinPlugin<unknown, unknown>[]>;
plugins?: Readonly<BuiltinPlugin<string, Object>[]>;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/svgo/plugins.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { visit } from '../xast.js';

/**
* @typedef {import('../svgo').BuiltinPlugin<?, ?>} BuiltinPlugin
* @typedef {import('../svgo').BuiltinPlugin<string, Object>} BuiltinPlugin
* @typedef {import('../svgo').BuiltinPluginOrPreset<?, ?>} BuiltinPreset
*/

Expand Down

0 comments on commit 8d777dd

Please sign in to comment.