Skip to content

Commit 6f2dcfe

Browse files
panagosg7meta-codesync[bot]
authored andcommitted
Deploy 0.341.0 to xplat
Summary: [changelog](https://github.com/facebook/flow/blob/main/Changelog.md) ## Library definitions Flow 0.341.0 rejects the explicit exact object syntax `{| |}` and unnamed function type parameters, and checks type applications inside generic definitions. Relay's `flow-typed/` definitions for Babel, chalk and Jest now write exact objects as `{ }` (objects are exact by default, so the meaning is unchanged), and the second parameter of Babel's `traverse` is named. In the shared `child_process` definition used by Metro and React Native, `MaybeStream` infers `E` from the optional `stdio` option, so `E` includes `void`; its indexed accesses now read `NonNullable<E>[FD]`. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D133315654
1 parent 9399287 commit 6f2dcfe

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.flowconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ untyped-import
3838
untyped-type-import
3939

4040
[version]
41-
^0.340.0
41+
^0.341.0

‎flow-typed/environment/node.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,9 @@ declare module 'child_process' {
539539
? StreamForChannel<FD>
540540
: E extends string
541541
? null
542-
: E[FD] extends child_process$StdioPipe
542+
: NonNullable<E>[FD] extends child_process$StdioPipe
543543
? StreamForChannel<FD>
544-
: E[FD] extends string | number
544+
: NonNullable<E>[FD] extends string | number
545545
? null
546546
: null | StreamForChannel<FD>
547547
: PipeByDefault extends true

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"eslint-plugin-react": "^7.37.5",
3636
"eslint-plugin-relay": "^1.8.3",
3737
"flow-api-translator": "0.340.0",
38-
"flow-bin": "^0.340.0",
38+
"flow-bin": "^0.341.0",
3939
"flow-eslint": "0.340.0",
4040
"flow-estree": "0.340.0",
4141
"flow-parser": "0.340.0",

‎yarn.lock‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3394,10 +3394,10 @@ flow-api-translator@0.340.0:
33943394
flow-transform "0.340.0"
33953395
typescript "5.3.2"
33963396

3397-
flow-bin@^0.340.0:
3398-
version "0.340.0"
3399-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.340.0.tgz#f3edbe6f235c9bc9ff735e5cae1dc8b0a96d55f7"
3400-
integrity sha512-XourZh2487go6B2RTIssruf5iH1rVATg7IdE8CGfMbey/93RJR5HTsqQEgVK33lmGhew8fTRLZmeSEyMVubMpw==
3397+
flow-bin@^0.341.0:
3398+
version "0.341.0"
3399+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.341.0.tgz#e10bd44a3031f84d7c091f3380d3dcf53af26b40"
3400+
integrity sha512-NgsIhAk4TNRXRHro00uu+dI0fUsrL8w1jcdQOIXLVxU9YS6YyrwbvxGJr5RQXtRqeu2ScN+oXfJG7ooMH7HlXw==
34013401

34023402
flow-enums-runtime@^0.0.6:
34033403
version "0.0.6"

0 commit comments

Comments
 (0)