Skip to content

Commit

Permalink
fix: use correct flow type for innerRef
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Dec 28, 2017
1 parent c18be53 commit ec8acdb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"eslint-plugin-flowtype": "^2.30.0",
"eslint-plugin-react": "^7.0.0",
"eslint-watch": "^3.0.0",
"flow-bin": "^0.56.0",
"flow-bin": "^0.61.0",
"flow-copy-source": "^1.2.1",
"flow-watch": "^1.1.0",
"get-node-dimensions": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type DefaultProps = {
}

export type Props = {
innerRef?: (c: ?HTMLSpanElement) => any,
innerRef?: (c: ?React.ElementRef<'div'>) => any,
shouldTransition: (oldChildren: any, newChildren: any) => boolean,
children?: any,
animateHeight: boolean,
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3308,9 +3308,9 @@ flatten@^1.0.2:
version "1.0.2"
resolved "https://registry.npmjs.org/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"

flow-bin@^0.56.0:
version "0.56.0"
resolved "https://registry.npmjs.org/flow-bin/-/flow-bin-0.56.0.tgz#ce43092203a344ba9bf63c0cabe95d95145f6cad"
flow-bin@^0.61.0:
version "0.61.0"
resolved "https://registry.npmjs.org/flow-bin/-/flow-bin-0.61.0.tgz#d0473a8c35dbbf4de573823f4932124397d32d35"

flow-copy-source@^1.2.1:
version "1.2.1"
Expand Down

0 comments on commit ec8acdb

Please sign in to comment.