Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ untyped-import
untyped-type-import

[version]
^0.338.0
^0.340.0
12 changes: 5 additions & 7 deletions flow-typed/environment/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3747,6 +3747,7 @@ type duplexStreamOptions = writableStreamOptions &
writableHighWaterMark?: number,
...
};
// prettier-ignore
declare class stream$Duplex extends stream$Readable mixins stream$Writable {
// This is an unusual class at runtime, per the docs it "prototypally extends from Readable,
// and then parasitically from Writable." Its static methods have incompatible signatures
Expand All @@ -3755,13 +3756,10 @@ declare class stream$Duplex extends stream$Readable mixins stream$Writable {

// $FlowFixMe[incompatible-exact] See above
// $FlowFixMe[incompatible-type] See above
static fromWeb(
pair: Readonly<{
readable: ReadableStream,
writable: WritableStream,
}>,
options?: duplexStreamOptions,
): this;
static fromWeb(pair: Readonly<{
readable: ReadableStream,
writable: WritableStream,
}>, options?: duplexStreamOptions): this;

// $FlowFixMe[incompatible-type] See above
static toWeb(streamDuplex: stream$Duplex): {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"eslint-plugin-relay": "^1.8.3",
"fb-dotslash": "0.5.8",
"flow-api-translator": "0.336.0",
"flow-bin": "^0.338.0",
"flow-bin": "^0.340.0",
"flow-eslint": "0.336.0",
"flow-parser": "0.336.0",
"flow-transform": "0.336.0",
Expand Down
1 change: 1 addition & 0 deletions packages/react-native/Libraries/ReactNative/UIManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ const UIManagerOverrides = {
// $FlowFixMe[incompatible-type] Flow cannot infer properties from descriptors.
const UIManager: UIManagerJSInterface = Object.create(
Object.getPrototypeOf(UIManagerImpl),
// $FlowFixMe[cannot-spread-interface]
{
...Object.getOwnPropertyDescriptors(
// $FlowFixMe[class-object-subtyping] UIManagerImpl is a runtime object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ export function hasNativeConstructor(
expectedName: string,
): boolean {
const con = Object.getPrototypeOf(o).constructor;
// $FlowFixMe[incompatible-type]
return con.name === expectedName && isNativeFunction(con);
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4855,10 +4855,10 @@ flow-api-translator@0.336.0:
flow-transform "0.336.0"
typescript "5.3.2"

flow-bin@^0.338.0:
version "0.338.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.338.0.tgz#6c0ca72133b54d89681f13c0b742c1b6b01a51cd"
integrity sha512-Ksy1gAdQd8l3//HvNrL8J5A6h3yxSMqvKStokgRKXCXEqsq8apKY0yyupGrO3nYEimd2/xjlJBd2wFuBKpMzwA==
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-enums-runtime@^0.0.6:
version "0.0.6"
Expand Down
Loading