Flow upgrade to 0.154
ghstack-source-id: d84024950a
Pull Request resolved: https://github.com/facebook/react/pull/25413
This commit is contained in:
parent
9f8a98a390
commit
8bc95bb3c8
|
@ -63,7 +63,7 @@
|
|||
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
|
||||
"fbjs-scripts": "1.2.0",
|
||||
"filesize": "^6.0.1",
|
||||
"flow-bin": "^0.153.0",
|
||||
"flow-bin": "^0.154.0",
|
||||
"glob": "^7.1.6",
|
||||
"glob-stream": "^6.1.0",
|
||||
"google-closure-compiler": "^20200517.0.0",
|
||||
|
|
|
@ -411,7 +411,7 @@ export default function KeyValue({
|
|||
const hasChildren = entries.length > 0 || canEditValues;
|
||||
const displayName = getMetaValueLabel(value);
|
||||
|
||||
children = entries.map<ReactElement<any>>(([key, keyValue]) => (
|
||||
children = entries.map(([key, keyValue]): ReactElement<any> => (
|
||||
<KeyValue
|
||||
key={key}
|
||||
alphaSort={alphaSort}
|
||||
|
|
|
@ -26,7 +26,7 @@ export default function Updaters({commitTree, updaters}: Props): React.Node {
|
|||
|
||||
const children =
|
||||
updaters.length > 0 ? (
|
||||
updaters.map<React$Node>((serializedElement: SerializedElement) => {
|
||||
updaters.map((serializedElement: SerializedElement): React$Node => {
|
||||
const {displayName, id, key, type} = serializedElement;
|
||||
const isVisibleInTree =
|
||||
commitTree.nodes.has(id) && type !== ElementTypeRoot;
|
||||
|
|
|
@ -317,6 +317,7 @@ class ReactFabricHostComponent {
|
|||
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
// $FlowFixMe[class-object-subtyping] found when upgrading Flow
|
||||
// $FlowFixMe[method-unbinding] found when upgrading Flow
|
||||
(ReactFabricHostComponent.prototype: $ReadOnly<{...NativeMethods, ...}>);
|
||||
|
||||
export * from 'react-reconciler/src/ReactFiberHostConfigWithNoMutation';
|
||||
|
|
|
@ -128,6 +128,7 @@ class ReactNativeFiberHostComponent {
|
|||
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
// $FlowFixMe[class-object-subtyping] found when upgrading Flow
|
||||
// $FlowFixMe[method-unbinding] found when upgrading Flow
|
||||
(ReactNativeFiberHostComponent.prototype: $ReadOnly<{...NativeMethods, ...}>);
|
||||
|
||||
export default ReactNativeFiberHostComponent;
|
||||
|
|
|
@ -18,6 +18,7 @@ function is(x: any, y: any) {
|
|||
}
|
||||
|
||||
const objectIs: (x: any, y: any) => boolean =
|
||||
// $FlowFixMe[method-unbinding]
|
||||
typeof Object.is === 'function' ? Object.is : is;
|
||||
|
||||
export default objectIs;
|
||||
|
|
|
@ -47,4 +47,4 @@ munge_underscores=false
|
|||
%REACT_RENDERER_FLOW_OPTIONS%
|
||||
|
||||
[version]
|
||||
^0.153.0
|
||||
^0.154.0
|
||||
|
|
|
@ -7912,10 +7912,10 @@ flatted@^2.0.0:
|
|||
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
|
||||
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==
|
||||
|
||||
flow-bin@^0.153.0:
|
||||
version "0.153.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.153.0.tgz#44d941acaf5ef977fa26d1b4b5dc3cf56b68eefc"
|
||||
integrity sha512-sxP9nfXnoyCUT6hjAO+zDyHLO3dZcWg0h+4HttHs/5wg/2oAkTDwmsWbj095IQsEmwTicq2TfqWq5QRuLxynlQ==
|
||||
flow-bin@^0.154.0:
|
||||
version "0.154.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.154.0.tgz#e086964398e671daa8f56ed8663d7876337f77e5"
|
||||
integrity sha512-I6u2ETdkAyard+8C5na6bfZp4EM0zIMB7O5zH4GKzBLv9/y8/NYRTxEXQe5T0hvj9R9DxFBUoPsFK76ziweUFw==
|
||||
|
||||
fluent-syntax@0.13.0:
|
||||
version "0.13.0"
|
||||
|
|
Loading…
Reference in New Issue