Upgrade to Flow v0.50.0
Reviewed By: gabelevi Differential Revision: D5438335 fbshipit-source-id: 7a96f68e7147e984c6f0cb84f957e639d36ca6b3
This commit is contained in:
parent
b8fafb46c1
commit
8e8fecdcf8
|
@ -52,4 +52,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
|||
unsafe.enable_getters_and_setters=true
|
||||
|
||||
[version]
|
||||
^0.49.1
|
||||
^0.50.0
|
||||
|
|
|
@ -79,9 +79,6 @@ class XHRExampleDownload extends React.Component {
|
|||
}
|
||||
|
||||
const onreadystatechange = () => {
|
||||
/* $FlowFixMe(>=0.48.0 site=react_native_fb,react_native_oss) This comment
|
||||
* suppresses an error found when Flow v0.48 was deployed. To see the
|
||||
* error delete this comment and run Flow. */
|
||||
if (xhr.readyState === xhr.HEADERS_RECEIVED) {
|
||||
const contentLength =
|
||||
parseInt(xhr.getResponseHeader('Content-Length'), 10);
|
||||
|
@ -89,9 +86,6 @@ class XHRExampleDownload extends React.Component {
|
|||
contentLength,
|
||||
responseLength: 0,
|
||||
});
|
||||
/* $FlowFixMe(>=0.48.0 site=react_native_fb,react_native_oss) This comment
|
||||
* suppresses an error found when Flow v0.48 was deployed. To see the
|
||||
* error delete this comment and run Flow. */
|
||||
} else if (xhr.readyState === xhr.LOADING && xhr.response) {
|
||||
this.setState({
|
||||
responseLength: xhr.response.length,
|
||||
|
|
|
@ -229,7 +229,7 @@
|
|||
"eslint-plugin-flowtype": "^2.33.0",
|
||||
"eslint-plugin-prettier": "2.1.1",
|
||||
"eslint-plugin-react": "^7.0.1",
|
||||
"flow-bin": "^0.49.1",
|
||||
"flow-bin": "^0.50.0",
|
||||
"jest": "20.1.0-chi.1",
|
||||
"jest-phabricator": "20.1.0-chi.1",
|
||||
"jest-repl": "20.1.0-chi.1",
|
||||
|
|
Loading…
Reference in New Issue