Skip to content

Commit c5b486f

Browse files
committed
fix(withTransitionContext.js.flow): fix flow types
some properties were accidentally marked required
1 parent 845db79 commit c5b486f

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ node_modules
99
test
1010
stories
1111
scripts
12-
storybook-static
12+
storybook-static

src/withTransitionContext.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export type Props = {
2222
renderView: (props: ViewProps) => React.Element<any>,
2323
animateHeight?: boolean,
2424
transitionTimeout?: number,
25+
transitionTimingFunction?: string,
2526
prefixer?: Prefixer,
2627
fillParent?: boolean,
27-
transitionHeight?: boolean,
2828
className?: string,
2929
style?: Object,
3030
viewportClassName?: string,

src/withTransitionContext.js.flow

+6-7
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@ export type ViewProps = {
1313
style: Object,
1414
ref: (element: HTMLElement) => any,
1515
}
16-
1716
export type Props = {
1817
activeView: number,
1918
numViews: number,
2019
renderView: (props: ViewProps) => React.Element<any>,
21-
animateHeight: boolean,
22-
transitionDuration: number,
23-
transitionTimingFunction: string,
24-
prefixer: Prefixer,
20+
animateHeight?: boolean,
21+
transitionTimeout?: number,
22+
transitionTimingFunction?: string,
23+
prefixer?: Prefixer,
2524
fillParent?: boolean,
2625
className?: string,
27-
style: Object,
26+
style?: Object,
2827
viewportClassName?: string,
29-
viewportStyle: Object,
28+
viewportStyle?: Object,
3029
}
3130

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

0 commit comments

Comments
 (0)