Skip to content

Commit 001cdec

Browse files
committed
fix: 修复 SVG 优化配置中的类型声明,确保类型安全
1 parent b0916bd commit 001cdec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/optimizeSvg.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const optimizationConfigs: Record<OptimizationLevel, Config> = {
3333
cleanupIds: false,
3434
},
3535
},
36-
},
36+
} as any,
3737
// 单独添加基础清理插件
3838
'removeComments',
3939
'removeMetadata',
@@ -53,7 +53,7 @@ const optimizationConfigs: Record<OptimizationLevel, Config> = {
5353
removeUselessStrokeAndFill: false,
5454
},
5555
},
56-
},
56+
} as any,
5757
'cleanupListOfValues',
5858
// 适度清理属性,但保留 class 用于样式控制
5959
{
@@ -75,7 +75,7 @@ const optimizationConfigs: Record<OptimizationLevel, Config> = {
7575
removeViewBox: false,
7676
},
7777
},
78-
},
78+
} as any,
7979
'cleanupListOfValues',
8080
{
8181
name: 'removeAttrs',

0 commit comments

Comments
 (0)