From c5b486f03d5a57962ed914ce09451377a2f9cd95 Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Tue, 18 Jul 2017 13:47:07 -0500 Subject: [PATCH] fix(withTransitionContext.js.flow): fix flow types some properties were accidentally marked required --- .npmignore | 2 +- src/withTransitionContext.js | 2 +- src/withTransitionContext.js.flow | 13 ++++++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.npmignore b/.npmignore index e9f3559..6848cc4 100644 --- a/.npmignore +++ b/.npmignore @@ -9,4 +9,4 @@ node_modules test stories scripts -storybook-static \ No newline at end of file +storybook-static diff --git a/src/withTransitionContext.js b/src/withTransitionContext.js index 15d208d..3a1fc46 100644 --- a/src/withTransitionContext.js +++ b/src/withTransitionContext.js @@ -22,9 +22,9 @@ export type Props = { renderView: (props: ViewProps) => React.Element, animateHeight?: boolean, transitionTimeout?: number, + transitionTimingFunction?: string, prefixer?: Prefixer, fillParent?: boolean, - transitionHeight?: boolean, className?: string, style?: Object, viewportClassName?: string, diff --git a/src/withTransitionContext.js.flow b/src/withTransitionContext.js.flow index 7605ede..f1b8fa1 100644 --- a/src/withTransitionContext.js.flow +++ b/src/withTransitionContext.js.flow @@ -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, - 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 {