Skip to content

Commit

Permalink
Fix minor flow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
STRML committed Sep 27, 2016
1 parent 4332005 commit 235d1fd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### 1.4.3 (Sep 27, 2016)

- Bugfix: Don't pass `onResize` in `<ResizableBox>`.
- Bugfix: Fix new Flow errors (type parameters no longer optional).

### 1.4.2 (July 1, 2016)

Expand Down
2 changes: 1 addition & 1 deletion lib/Resizable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default class Resizable extends React.Component {
};
}

render(): React.Element {
render(): React.Element<any> {
// eslint-disable-next-line no-unused-vars
const {children, draggableOpts, width, height,
handleSize, lockAspectRatio, minConstraints, maxConstraints, onResize,
Expand Down
2 changes: 1 addition & 1 deletion lib/ResizableBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class ResizableBox extends React.Component {
};
onResize: (event: Event, data: ResizeData) => void;

render(): React.Element {
render(): React.Element<any> {
// Basic wrapper around a Resizable instance.
// If you use Resizable directly, you are responsible for updating the child component
// with a new width and height.
Expand Down
2 changes: 1 addition & 1 deletion lib/cloneElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React from 'react';

// React.addons.cloneWithProps look-alike that merges style & className.
module.exports = function cloneElement(element: React.Element, props: Object): React.Element {
module.exports = function cloneElement(element: React.Element<any>, props: Object): React.Element<any> {
if (props.style && element.props.style) {
props.style = {...element.props.style, ...props.style};
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"css-loader": "^0.23.1",
"eslint": "^1.10.3",
"eslint-plugin-react": "^3.16.1",
"flow-bin": "^0.25.0",
"flow-bin": "^0.32.0",
"lodash": "^4.3.0",
"pre-commit": "^1.1.2",
"react": "^15.0.0",
Expand Down

0 comments on commit 235d1fd

Please sign in to comment.