Skip to content

Commit

Permalink
docs(typescript): refactor typescript template (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsogl authored and gregberge committed Jun 27, 2019
1 parent 065e7a9 commit 002996d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/pages/docs/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ module.exports = {
) {
const typeScriptTpl = template.smart({ plugins: ['typescript'] })
return typeScriptTpl.ast`
import * as React from 'react';
const ${componentName} = (props: React.SVGProps<SVGSVGElement>) => ${jsx};
import React, { SVGProps } from 'react';
const ${componentName} = (props: SVGProps<SVGSVGElement>) => ${jsx};
export default ${componentName};
`
},
Expand Down

1 comment on commit 002996d

@vercel
Copy link

@vercel vercel bot commented on 002996d Jun 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully aliased the URL https://svgr-yxepttinzg.now.sh to the following alias.

Please sign in to comment.