update xplat/js to flow 0.48.0
Reviewed By: zertosh Differential Revision: D5243415 fbshipit-source-id: 78ea4f7f29bcd6a70650f24ceb05f06b18b39018
This commit is contained in:
parent
0d3b7fe472
commit
71401c1185
|
@ -38,12 +38,12 @@ suppress_type=$FlowIssue
|
||||||
suppress_type=$FlowFixMe
|
suppress_type=$FlowFixMe
|
||||||
suppress_type=$FixMe
|
suppress_type=$FixMe
|
||||||
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-7]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-8]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-7]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
|
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-8]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
||||||
|
|
||||||
unsafe.enable_getters_and_setters=true
|
unsafe.enable_getters_and_setters=true
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.47.0
|
^0.48.0
|
||||||
|
|
|
@ -79,6 +79,9 @@ class XHRExampleDownload extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
const onreadystatechange = () => {
|
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) {
|
if (xhr.readyState === xhr.HEADERS_RECEIVED) {
|
||||||
const contentLength =
|
const contentLength =
|
||||||
parseInt(xhr.getResponseHeader('Content-Length'), 10);
|
parseInt(xhr.getResponseHeader('Content-Length'), 10);
|
||||||
|
@ -86,6 +89,9 @@ class XHRExampleDownload extends React.Component {
|
||||||
contentLength,
|
contentLength,
|
||||||
responseLength: 0,
|
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) {
|
} else if (xhr.readyState === xhr.LOADING && xhr.response) {
|
||||||
this.setState({
|
this.setState({
|
||||||
responseLength: xhr.response.length,
|
responseLength: xhr.response.length,
|
||||||
|
|
|
@ -34,12 +34,12 @@ suppress_type=$FlowIssue
|
||||||
suppress_type=$FlowFixMe
|
suppress_type=$FlowFixMe
|
||||||
suppress_type=$FixMe
|
suppress_type=$FixMe
|
||||||
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-7]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-8]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-7]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-8]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
||||||
|
|
||||||
unsafe.enable_getters_and_setters=true
|
unsafe.enable_getters_and_setters=true
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.47.0
|
^0.48.0
|
||||||
|
|
|
@ -226,7 +226,7 @@
|
||||||
"eslint-plugin-babel": "^4.1.1",
|
"eslint-plugin-babel": "^4.1.1",
|
||||||
"eslint-plugin-flowtype": "^2.33.0",
|
"eslint-plugin-flowtype": "^2.33.0",
|
||||||
"eslint-plugin-react": "^7.0.1",
|
"eslint-plugin-react": "^7.0.1",
|
||||||
"flow-bin": "^0.47.0",
|
"flow-bin": "^0.48.0",
|
||||||
"jest": "^20.0.4",
|
"jest": "^20.0.4",
|
||||||
"jest-repl": "^20.0.4",
|
"jest-repl": "^20.0.4",
|
||||||
"jest-runtime": "^20.0.4",
|
"jest-runtime": "^20.0.4",
|
||||||
|
|
Loading…
Reference in New Issue