diff --git a/.flowconfig b/.flowconfig index aff40b161f8d..22d54b035acf 100644 --- a/.flowconfig +++ b/.flowconfig @@ -53,9 +53,6 @@ experimental.multi_platform=true experimental.multi_platform.extensions=.ios experimental.multi_platform.extensions=.android -experimental.assertion_functions=true -experimental.disable_invariant_special_casing=true - munge_underscores=true module.name_mapper='^react-native$' -> '/packages/react-native/index.js' @@ -100,4 +97,4 @@ untyped-import untyped-type-import [version] -^0.336.0 +^0.337.0 diff --git a/flow-typed/npm/rxjs_v6.x.x.js b/flow-typed/npm/rxjs_v6.x.x.js index 4a5dbbd319b7..ef8e09e9ed5a 100644 --- a/flow-typed/npm/rxjs_v6.x.x.js +++ b/flow-typed/npm/rxjs_v6.x.x.js @@ -297,7 +297,7 @@ declare class rxjs$Subject hasError: boolean; thrownError: any; constructor(): void; - static create: Function; + static create: any; lift(operator: rxjs$Operator): rxjs$Observable; next(value?: T): void; error(err: any): void; diff --git a/package.json b/package.json index e4feea525408..0c43364ce1f9 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,7 @@ "eslint-plugin-relay": "^1.8.3", "fb-dotslash": "0.5.8", "flow-api-translator": "0.336.0", - "flow-bin": "^0.336.0", + "flow-bin": "^0.337.0", "flow-eslint": "0.336.0", "flow-parser": "0.336.0", "flow-transform": "0.336.0", diff --git a/packages/react-native/src/private/animated/__tests__/AnimatedNative-test.js b/packages/react-native/src/private/animated/__tests__/AnimatedNative-test.js index 81ec870e4871..f6b315d43915 100644 --- a/packages/react-native/src/private/animated/__tests__/AnimatedNative-test.js +++ b/packages/react-native/src/private/animated/__tests__/AnimatedNative-test.js @@ -97,6 +97,7 @@ describe('Native Animated', () => { await create(); expect(ref.current).not.toBeNull(); + // $FlowFixMe[incompatible-type] Flow 0.337 jest.spyOn(ref.current, 'setNativeProps'); opacity.setValue(0.5); diff --git a/yarn.lock b/yarn.lock index 244ea6204e4f..a0e1e91d5eb1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4855,10 +4855,10 @@ flow-api-translator@0.336.0: flow-transform "0.336.0" typescript "5.3.2" -flow-bin@^0.336.0: - version "0.336.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.336.0.tgz#ac946f9cdf134b83ab4f7a98a0de34324f6b94f4" - integrity sha512-I5sPg/GISpXH4W14eGWgiIsrDKY0uvvvXjlEDOI2t0pguEwbMgpnaYzMMMBoHZcYYtNJIF/0eGsbPnN7uP2zOQ== +flow-bin@^0.337.0: + version "0.337.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.337.0.tgz#419252403924033308160351e95f723bcf42597c" + integrity sha512-rpr+WvY30RdXPNHbioErMM8tLKUOKJ8/neXPpsDYRBp9z7WDkl4bpTBUMZiqh9ozfdcDWEACBTXwIl94h/ZA0A== flow-enums-runtime@^0.0.6: version "0.0.6"