diff --git a/.flowconfig b/.flowconfig index 16cce4cca9ae..17cf8641774d 100644 --- a/.flowconfig +++ b/.flowconfig @@ -13,4 +13,4 @@ module.name_mapper='^types/\(.*\)$' -> '/types/\1.js' module.name_mapper='\(jest-[^/]*\)' -> '/packages/\1/src/index.js' [version] -^0.52.0 +^0.53.1 diff --git a/examples/react-native/Intro.js b/examples/react-native/Intro.js index 71f96408028f..d532570341c6 100644 --- a/examples/react-native/Intro.js +++ b/examples/react-native/Intro.js @@ -26,7 +26,7 @@ const styles = StyleSheet.create({ }, }); -export default class Intro extends Component { +export default class Intro extends Component<{}> { render() { return ( diff --git a/examples/react-native/index.android.js b/examples/react-native/index.android.js index 7cffd18208e0..33cf77567e33 100644 --- a/examples/react-native/index.android.js +++ b/examples/react-native/index.android.js @@ -8,7 +8,7 @@ import Intro from './Intro'; import React, {AppRegistry} from 'react-native'; import {Component} from 'react'; -class App extends Component { +class App extends Component<{}> { render() { return ; } diff --git a/examples/react-native/index.ios.js b/examples/react-native/index.ios.js index 11b268704716..3463bbb41ba9 100644 --- a/examples/react-native/index.ios.js +++ b/examples/react-native/index.ios.js @@ -8,7 +8,7 @@ import Intro from './Intro'; import React, {Component} from 'react'; import {AppRegistry} from 'react-native'; -class App extends Component { +class App extends Component<{}> { render() { return ; } diff --git a/package.json b/package.json index 8aef396d74f1..51a049a7326b 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "eslint-plugin-react": "^7.1.0", "eslint-plugin-relay": "0.0.8", "eslint-plugin-unicorn": "^2.1.2", - "flow-bin": "^0.52.0", + "flow-bin": "^0.53.1", "glob": "^7.1.1", "graceful-fs": "^4.1.11", "immutable": "^4.0.0-rc.1", diff --git a/packages/pretty-format/src/__tests__/immutable.test.js b/packages/pretty-format/src/__tests__/immutable.test.js index 20867fd464ac..0a03da43e55b 100644 --- a/packages/pretty-format/src/__tests__/immutable.test.js +++ b/packages/pretty-format/src/__tests__/immutable.test.js @@ -10,7 +10,7 @@ 'use strict'; -import React from 'react'; +import * as React from 'react'; import Immutable from 'immutable'; import prettyFormat from '../'; const {Immutable: ImmutablePlugin, ReactElement} = prettyFormat.plugins; diff --git a/packages/pretty-format/src/plugins/react_element.js b/packages/pretty-format/src/plugins/react_element.js index 0f8bf77f0dd7..ba1d45c2096b 100644 --- a/packages/pretty-format/src/plugins/react_element.js +++ b/packages/pretty-format/src/plugins/react_element.js @@ -43,7 +43,7 @@ const getType = element => { }; export const serialize = ( - element: React$Element<*>, + element: React$Element, config: Config, indentation: string, depth: number, diff --git a/yarn.lock b/yarn.lock index 830c996c2141..3b005d29a1c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2763,9 +2763,9 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" -flow-bin@^0.52.0: - version "0.52.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.52.0.tgz#b6d9abe8bcd1ee5c62df386451a4e2553cadc3a3" +flow-bin@^0.53.1: + version "0.53.1" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.53.1.tgz#9b22b63a23c99763ae533ebbab07f88c88c97d84" flow-remove-types@^1.1.0: version "1.2.1"