diff --git a/scripts/build.js b/scripts/build.js index 8800e09e1..9fffcee5d 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -86,7 +86,7 @@ async function buildIcons(package, style, format) { let types = package === 'react' ? `import * as React from 'react';\ndeclare function ${componentName}(props: React.ComponentProps<'svg'>): JSX.Element;\nexport default ${componentName};\n` - : `export default import("vue").DefineComponent;` + : `import { RenderFunction } from 'vue';\ndeclare const ${componentName}: RenderFunction;\nexport default ${componentName};\n` return [ fs.writeFile(`${outDir}/${componentName}.js`, content, 'utf8'),