diff --git a/.flowconfig b/.flowconfig index c5d8d3f..a4d3d2a 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,5 +1,6 @@ [ignore] /lib/.* +/node_modules/immutable/.* .*/node_modules/.*/tests?/.*\.json .*/node_modules/fbjs/.* .*/node_modules/jss/.* diff --git a/flow-typed/npm/babel-plugin-flow-react-proptypes_vx.x.x.js b/flow-typed/npm/babel-plugin-flow-react-proptypes_vx.x.x.js index 8a50b3e..d0fc6fe 100644 --- a/flow-typed/npm/babel-plugin-flow-react-proptypes_vx.x.x.js +++ b/flow-typed/npm/babel-plugin-flow-react-proptypes_vx.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 1fcd753746a87b9a528c2d9b2b796ee6 -// flow-typed version: <>/babel-plugin-flow-react-proptypes_v^2.2.1/flow_v0.56.0 +// flow-typed signature: 7f1abbf0a3de84e95eedbdf7d6dc7db3 +// flow-typed version: <>/babel-plugin-flow-react-proptypes_v^9.1.1/flow_v0.56.0 /** * This is an autogenerated libdef stub for: diff --git a/flow-typed/npm/flow-copy-source_vx.x.x.js b/flow-typed/npm/flow-copy-source_vx.x.x.js new file mode 100644 index 0000000..9f48f78 --- /dev/null +++ b/flow-typed/npm/flow-copy-source_vx.x.x.js @@ -0,0 +1,53 @@ +// flow-typed signature: f9663490ff97b8d0eb0e93c075532b4c +// flow-typed version: <>/flow-copy-source_v^1.2.1/flow_v0.56.0 + +/** + * This is an autogenerated libdef stub for: + * + * 'flow-copy-source' + * + * Fill this stub out by replacing all the `any` types. + * + * Once filled out, we encourage you to share your work with the + * community by sending a pull request to: + * https://github.com/flowtype/flow-typed + */ + +declare module 'flow-copy-source' { + declare module.exports: any; +} + +/** + * We include stubs for each file inside this npm package in case you need to + * require those files directly. Feel free to delete any files that aren't + * needed. + */ +declare module 'flow-copy-source/bin/flow-copy-source' { + declare module.exports: any; +} + +declare module 'flow-copy-source/src/index' { + declare module.exports: any; +} + +declare module 'flow-copy-source/src/kefir-copy-file' { + declare module.exports: any; +} + +declare module 'flow-copy-source/src/kefir-glob' { + declare module.exports: any; +} + +// Filename aliases +declare module 'flow-copy-source/bin/flow-copy-source.js' { + declare module.exports: $Exports<'flow-copy-source/bin/flow-copy-source'>; +} +declare module 'flow-copy-source/src/index.js' { + declare module.exports: $Exports<'flow-copy-source/src/index'>; +} +declare module 'flow-copy-source/src/kefir-copy-file.js' { + declare module.exports: $Exports<'flow-copy-source/src/kefir-copy-file'>; +} +declare module 'flow-copy-source/src/kefir-glob.js' { + declare module.exports: $Exports<'flow-copy-source/src/kefir-glob'>; +} diff --git a/package.json b/package.json index 25bd61c..a606c2b 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "babel-cli": "^6.22.2", "babel-core": "^6.22.1", "babel-eslint": "^7.1.1", - "babel-plugin-flow-react-proptypes": "^8.0.0", + "babel-plugin-flow-react-proptypes": "^9.1.1", "babel-plugin-istanbul": "^4.0.0", "babel-plugin-transform-react-constant-elements": "^6.9.1", "babel-plugin-transform-runtime": "^6.22.0", diff --git a/src/simpleWithTransitionContext.js b/src/simpleWithTransitionContext.js index aa45388..055e9ec 100644 --- a/src/simpleWithTransitionContext.js +++ b/src/simpleWithTransitionContext.js @@ -6,7 +6,7 @@ import TransitionContext from 'react-transition-context' import {createSimpleViewSlider} from './simple' import type {ViewProps} from './index' -function renderView({index, key, style, ref, transitionState}: ViewProps): React.Element { +function renderView({index, key, style, ref, transitionState}: ViewProps): React.Element> { return (
diff --git a/src/withTransitionContext.js b/src/withTransitionContext.js index 35711c7..2fe56f7 100644 --- a/src/withTransitionContext.js +++ b/src/withTransitionContext.js @@ -32,7 +32,8 @@ export type Props = { } export default class ViewSliderWithTransitionContext extends React.Component { - renderView = (props: ViewProps): React.Element => { + static defaultProps: Props; + renderView = (props: ViewProps): React.Element> => { return ( {this.props.renderView(props)} diff --git a/yarn.lock b/yarn.lock index 725faf2..e2b8cfc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -767,9 +767,9 @@ babel-plugin-dynamic-import-node@1.0.2: babel-template "^6.24.1" babel-types "^6.24.1" -babel-plugin-flow-react-proptypes@^8.0.0: - version "8.0.0" - resolved "https://registry.npmjs.org/babel-plugin-flow-react-proptypes/-/babel-plugin-flow-react-proptypes-8.0.0.tgz#bcc8b3ce3b7ffa7d35ff99252d1980a6a028e503" +babel-plugin-flow-react-proptypes@^9.1.1: + version "9.1.1" + resolved "https://registry.npmjs.org/babel-plugin-flow-react-proptypes/-/babel-plugin-flow-react-proptypes-9.1.1.tgz#276a55a82937892dffed65b53732bd55beef4af5" dependencies: babel-core "^6.25.0" babel-template "^6.25.0"