From 8d777dd3c99decd3f9d7c7dd897fe5664a3a0c28 Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Thu, 13 Jun 2024 16:18:19 +0100 Subject: [PATCH] chore: use concrete types for generics (#2034) --- lib/svgo.d.ts | 2 +- lib/svgo/plugins.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svgo.d.ts b/lib/svgo.d.ts index c09de4a7a..f22634aa4 100644 --- a/lib/svgo.d.ts +++ b/lib/svgo.d.ts @@ -41,7 +41,7 @@ type BuiltinPluginOrPreset = BuiltinPlugin & { * 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[]>; + plugins?: Readonly[]>; }; /** diff --git a/lib/svgo/plugins.js b/lib/svgo/plugins.js index fbb609e8e..5158c9724 100644 --- a/lib/svgo/plugins.js +++ b/lib/svgo/plugins.js @@ -1,7 +1,7 @@ import { visit } from '../xast.js'; /** - * @typedef {import('../svgo').BuiltinPlugin} BuiltinPlugin + * @typedef {import('../svgo').BuiltinPlugin} BuiltinPlugin * @typedef {import('../svgo').BuiltinPluginOrPreset} BuiltinPreset */