Skip to content

Commit

Permalink
feat(types): export Props
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Sep 2, 2021
1 parent 61e6659 commit c2ae854
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const path = require('path');
const bannerReact = require('./banner.js')('React');

const createComponentTypes = (componentName, propsContent) => {
propsContent = propsContent.replace(
'interface Props {',
'export interface Props {'
);
return `
import * as React from 'react';
Expand Down

0 comments on commit c2ae854

Please sign in to comment.