diff --git a/generators/app/templates/typings.d.ts b/generators/app/templates/typings.d.ts index b93da34..dcc9b58 100644 --- a/generators/app/templates/typings.d.ts +++ b/generators/app/templates/typings.d.ts @@ -2,4 +2,6 @@ declare module '*.css' declare module '*.less' declare module '*.png' declare module '*.jpg' -declare module '*.svg' +declare module '*.svg' { + export function ReactComponent(props: React.SVGProps): React.ReactElement +} diff --git a/package.json b/package.json index 52e8c94..1cd332c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-umi", - "version": "4.2.2", + "version": "4.2.3", "description": "umi project generator", "scripts": { "docs:dev": "vuepress dev docs",