diff --git a/.flowconfig b/.flowconfig index 29cdc377447..47c84c54801 100644 --- a/.flowconfig +++ b/.flowconfig @@ -119,4 +119,4 @@ untyped-import untyped-type-import [version] -^0.340.0 +^0.341.0 diff --git a/flow-typed/environment/node.js b/flow-typed/environment/node.js index b82b7dfb380..919e991cb21 100644 --- a/flow-typed/environment/node.js +++ b/flow-typed/environment/node.js @@ -539,9 +539,9 @@ declare module 'child_process' { ? StreamForChannel : E extends string ? null - : E[FD] extends child_process$StdioPipe + : NonNullable[FD] extends child_process$StdioPipe ? StreamForChannel - : E[FD] extends string | number + : NonNullable[FD] extends string | number ? null : null | StreamForChannel : PipeByDefault extends true diff --git a/package.json b/package.json index 66a38257073..e2da7bf4b50 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "eslint-plugin-relay": "^1.8.3", "fb-dotslash": "0.5.8", "flow-api-translator": "0.340.0", - "flow-bin": "^0.340.0", + "flow-bin": "^0.341.0", "flow-eslint": "0.340.0", "flow-parser": "0.340.0", "flow-transform": "0.340.0", diff --git a/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.js b/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.js index 92f176f8992..42cab9e40ee 100644 --- a/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.js +++ b/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.js @@ -1133,6 +1133,7 @@ type ____FlattenStyleProp_Helper< : TStyleProp extends ReadonlyArray ? ____FlattenStyleProp_Helper< V, + // $FlowFixMe[incompatible-use] Depth extends number ? FlattenDepthLimiter[Depth] : 0, > : TStyleProp; diff --git a/yarn.lock b/yarn.lock index 1bd980abff8..9a48c1379d0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4855,10 +4855,10 @@ flow-api-translator@0.340.0: flow-transform "0.340.0" typescript "5.3.2" -flow-bin@^0.340.0: - version "0.340.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.340.0.tgz#f3edbe6f235c9bc9ff735e5cae1dc8b0a96d55f7" - integrity sha512-XourZh2487go6B2RTIssruf5iH1rVATg7IdE8CGfMbey/93RJR5HTsqQEgVK33lmGhew8fTRLZmeSEyMVubMpw== +flow-bin@^0.341.0: + version "0.341.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.341.0.tgz#e10bd44a3031f84d7c091f3380d3dcf53af26b40" + integrity sha512-NgsIhAk4TNRXRHro00uu+dI0fUsrL8w1jcdQOIXLVxU9YS6YyrwbvxGJr5RQXtRqeu2ScN+oXfJG7ooMH7HlXw== flow-enums-runtime@^0.0.6: version "0.0.6"