Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanxdev committed Oct 3, 2018
1 parent a426e00 commit afb36e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -209,11 +209,11 @@ class Example extends React.Component {
}
```

- `addVariables` (boolean) - Adding variables for props. Defaults to `false`.
- `declarePropTypeVariables` (boolean) - Adding declarations for variables of PropTypes. Defaults to `false`.

```js
module.exports = {
plugins: [['babel-plugin-typescript-to-proptypes', { addVariables: true }]],
plugins: [['babel-plugin-typescript-to-proptypes', { declarePropTypeVariables: true }]],
};
```

Expand Down

0 comments on commit afb36e2

Please sign in to comment.