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