Skip to content

Commit

Permalink
fix(withTransitionContext.js.flow): fix flow types
Browse files Browse the repository at this point in the history
some properties were accidentally marked required
  • Loading branch information
jedwards1211 committed Jul 18, 2017
1 parent 845db79 commit c5b486f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ node_modules
test
stories
scripts
storybook-static
storybook-static
2 changes: 1 addition & 1 deletion src/withTransitionContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export type Props = {
renderView: (props: ViewProps) => React.Element<any>,
animateHeight?: boolean,
transitionTimeout?: number,
transitionTimingFunction?: string,
prefixer?: Prefixer,
fillParent?: boolean,
transitionHeight?: boolean,
className?: string,
style?: Object,
viewportClassName?: string,
Expand Down
13 changes: 6 additions & 7 deletions src/withTransitionContext.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,19 @@ export type ViewProps = {
style: Object,
ref: (element: HTMLElement) => any,
}

export type Props = {
activeView: number,
numViews: number,
renderView: (props: ViewProps) => React.Element<any>,
animateHeight: boolean,
transitionDuration: number,
transitionTimingFunction: string,
prefixer: Prefixer,
animateHeight?: boolean,
transitionTimeout?: number,
transitionTimingFunction?: string,
prefixer?: Prefixer,
fillParent?: boolean,
className?: string,
style: Object,
style?: Object,
viewportClassName?: string,
viewportStyle: Object,
viewportStyle?: Object,
}

declare export default class ViewSliderWithTransitionContext extends Component<void, Props, void> {
Expand Down

0 comments on commit c5b486f

Please sign in to comment.