Skip to content

Commit

Permalink
Use RenderFunction instead of DefineComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc authored Aug 17, 2021
1 parent 8c6bd52 commit 1658f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
: `import { DefineComponent } from 'vue';\ndeclare const ${componentName}: DefineComponent;\nexport default ${componentName};\n`
: `import { RenderFunction } from 'vue';\ndeclare const ${componentName}: RenderFunction;\nexport default ${componentName};\n`

return [
fs.writeFile(`${outDir}/${componentName}.js`, content, 'utf8'),
Expand Down

0 comments on commit 1658f7c

Please sign in to comment.