File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
packages/solutions/app-tools/lib Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @modern-js/app-tools ' : patch
3
+ ---
4
+
5
+ fix(app-tools): SVG default export type
6
+
7
+ fix(app-tools): 修复 SVG 默认导出的类型错误
Original file line number Diff line number Diff line change @@ -53,8 +53,12 @@ declare module '*.svg' {
53
53
React . SVGProps < SVGSVGElement >
54
54
> ;
55
55
56
- const src : string ;
57
- export default src ;
56
+ /**
57
+ * The default export type depends on the svgDefaultExport config,
58
+ * it can be a string or a ReactComponent
59
+ * */
60
+ const content : any ;
61
+ export default content ;
58
62
}
59
63
60
64
declare module '*.bmp?inline' {
@@ -99,12 +103,8 @@ declare module '*.svg?inline' {
99
103
React . SVGProps < SVGSVGElement >
100
104
> ;
101
105
102
- /**
103
- * The default export type depends on the svgDefaultExport config,
104
- * it can be a string or a ReactComponent
105
- * */
106
- const content : any ;
107
- export default content ;
106
+ const src : string ;
107
+ export default src ;
108
108
}
109
109
110
110
declare module '*.bmp?url' {
You can’t perform that action at this time.
0 commit comments