Skip to content

Commit 87f179b

Browse files
authored
🤖 Merge PR DefinitelyTyped#73174 update imagemin-svgo to v11 by @robertmaier
1 parent 7f11c2f commit 87f179b

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

types/gulp-imagemin/gulp-imagemin-tests.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ const plugins = [
99
floatPrecision: 2,
1010
plugins: [
1111
{
12-
name: "removeViewBox",
13-
active: true,
14-
},
15-
{
16-
name: "cleanupIDs",
17-
active: false,
12+
name: "preset-default",
13+
params: {
14+
overrides: {
15+
removeViewBox: false,
16+
cleanupIds: {
17+
remove: true,
18+
},
19+
},
20+
},
1821
},
1922
],
2023
}),

types/imagemin-svgo/imagemin-svgo-tests.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ imagemin(["*.svg"], {
99
floatPrecision: 2,
1010
plugins: [
1111
{
12-
name: "removeViewBox",
13-
active: true,
12+
name: "preset-default",
13+
params: {
14+
overrides: {
15+
convertShapeToPath: {
16+
convertArcs: false,
17+
},
18+
},
19+
},
1420
},
1521
],
1622
multipass: false,

types/imagemin-svgo/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Plugin } from "imagemin";
2-
import { OptimizeOptions as SvgoOptions } from "svgo";
2+
import { Config as SvgoConfig } from "svgo";
33

44
/**
55
* SVGO imagemin plugin
66
*/
77
declare function imageminSvgo(options?: Options): Plugin;
88

9-
export type Options = SvgoOptions & {
9+
export type Options = SvgoConfig & {
1010
/**
1111
* Pass over SVGs multiple times to ensure all optimizations are applied
1212
* @default true

types/imagemin-svgo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"private": true,
33
"name": "@types/imagemin-svgo",
4-
"version": "10.0.9999",
4+
"version": "11.0.9999",
55
"projects": [
66
"https://github.com/imagemin/imagemin-svgo#readme"
77
],
88
"dependencies": {
99
"@types/imagemin": "*",
10-
"@types/svgo": "2"
10+
"svgo": "3"
1111
},
1212
"devDependencies": {
1313
"@types/imagemin-svgo": "workspace:."

0 commit comments

Comments
 (0)