diff --git a/.flowconfig b/.flowconfig index b70d0302f1..2a076031df 100644 --- a/.flowconfig +++ b/.flowconfig @@ -38,4 +38,4 @@ untyped-import untyped-type-import [version] -^0.342.0 +^0.343.0 diff --git a/flow-typed/jest.js b/flow-typed/jest.js index bd456b1998..613ecdbb25 100644 --- a/flow-typed/jest.js +++ b/flow-typed/jest.js @@ -71,7 +71,7 @@ type JestMockFn, TReturn> = { /** * Returns the current implementation, or undefined for an unimplemented mock. */ - getMockImplementation(): void | ((...args: TArguments) => TReturn), + getMockImplementation(): undefined | ((...args: TArguments) => TReturn), /** * Accepts a function that should be used as the implementation of the mock. * The mock itself will still record all calls that go into and instances @@ -1001,22 +1001,22 @@ type JestDoneFn = { /** Runs this function after every test inside this context */ declare function afterEach( - fn: (done: JestDoneFn) => ?Promise, + fn: (done: JestDoneFn) => void | Promise, timeout?: number, ): void; /** Runs this function before every test inside this context */ declare function beforeEach( - fn: (done: JestDoneFn) => ?Promise, + fn: (done: JestDoneFn) => void | Promise, timeout?: number, ): void; /** Runs this function after all tests have finished inside this context */ declare function afterAll( - fn: (done: JestDoneFn) => ?Promise, + fn: (done: JestDoneFn) => void | Promise, timeout?: number, ): void; /** Runs this function before any tests have started inside this context */ declare function beforeAll( - fn: (done: JestDoneFn) => ?Promise, + fn: (done: JestDoneFn) => void | Promise, timeout?: number, ): void; @@ -1148,7 +1148,7 @@ declare var it: { declare function fit( name: JestTestName, - fn: (done: JestDoneFn) => ?Promise, + fn: (done: JestDoneFn) => void | Promise, timeout?: number, ): void; /** An individual test unit */ diff --git a/flow-typed/npm/babel_v7.x.x.js b/flow-typed/npm/babel_v7.x.x.js index e835719a8c..5d728fb576 100644 --- a/flow-typed/npm/babel_v7.x.x.js +++ b/flow-typed/npm/babel_v7.x.x.js @@ -1255,6 +1255,7 @@ declare module '@babel/generator' { code?: string | {[filename: string]: string, ...}, ) => GeneratorResult; + // $FlowFixMe[name-already-bound] declare export default ( ast: BabelNode, options?: Options, diff --git a/package.json b/package.json index 2c43002fef..f8e17d2d84 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "eslint-plugin-react": "^7.37.5", "eslint-plugin-relay": "^1.8.3", "flow-api-translator": "0.340.0", - "flow-bin": "^0.342.0", + "flow-bin": "^0.343.0", "flow-eslint": "0.340.0", "flow-estree": "0.340.0", "flow-parser": "0.340.0", diff --git a/yarn.lock b/yarn.lock index d72e7e0ca0..71008b5c61 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3395,10 +3395,10 @@ flow-api-translator@0.340.0: flow-transform "0.340.0" typescript "5.3.2" -flow-bin@^0.342.0: - version "0.342.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.342.0.tgz#de211291165039f8cc83355575b75a931bd09793" - integrity sha512-/ha9+RAUGF+G9o5hnBzpKCP5iZXzms0tMVi1Dp4zNvPfWo3dUF6qE8S0Q2zJMugX3f5DPqE4h3BaFSpWYQjhUA== +flow-bin@^0.343.0: + version "0.343.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.343.0.tgz#2aabed58e14f89df207f31c20071460b228161d8" + integrity sha512-JNu0HcN40ffhgWr91AwxNIHMLaEtq6uny2ubdPhH2xXoMba21px930aFmIUw1c5ui9S5LFN/AW04S6RwUkUw6w== flow-enums-runtime@^0.0.6: version "0.0.6"