diff --git a/.flowconfig b/.flowconfig index ece6a223a3a6..5ce11c37c075 100644 --- a/.flowconfig +++ b/.flowconfig @@ -41,4 +41,4 @@ untyped-import untyped-type-import [version] -^0.250.0 +^0.251.0 diff --git a/flow-typed/react.js b/flow-typed/react.js index 6af0feb0481c..90b97cacc359 100644 --- a/flow-typed/react.js +++ b/flow-typed/react.js @@ -41,10 +41,6 @@ declare module react { declare export var Component: typeof React$Component; declare export var PureComponent: typeof React$PureComponent; declare export type ComponentType<-P> = React$ComponentType

; - declare export type AbstractComponent< - -Config, - +Instance = mixed, - > = React$AbstractComponent; declare export type MixedElement = React$MixedElement; declare export type ElementType = React$ElementType; declare export type Element<+C> = React$Element; @@ -191,14 +187,11 @@ declare module react { interactions: Set, ) => void; - declare export var Profiler: React$AbstractComponent< - {| - children?: React$Node, - id: string, - onRender: ProfilerOnRenderFnType, - |}, - void, - >; + declare export var Profiler: React$ComponentType<{| + children?: React$Node, + id: string, + onRender: ProfilerOnRenderFnType, + |}>; declare type TimeoutConfig = {| timeoutMs: number, diff --git a/package.json b/package.json index bbcc869faf91..faeb31ae1e9e 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "eslint-plugin-relay": "1.8.3", "eslint-plugin-relay-internal": "link:./packages/eslint-plugin-relay-internal", "fbjs": "^3.0.2", - "flow-bin": "^0.250.0", + "flow-bin": "^0.251.0", "glob": "^7.1.1", "graphql": "15.3.0", "gulp": "4.0.2", diff --git a/yarn.lock b/yarn.lock index fc4b8cb4c4a8..b14fd3c56319 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3864,10 +3864,10 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.6.tgz#022e9218c637f9f3fc9c35ab9c9193f05add60b2" integrity sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ== -flow-bin@^0.250.0: - version "0.250.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.250.0.tgz#a9baa110a03563e373f1d61309088d9aaa0cdfae" - integrity sha512-OYEPzpgSzvV+33kBuOOA1C0AjQkzIjrmbS/324CRRijnU1tABKyM5unzf4KIkyN5IQutgxqsSRZ1GsixC8+xIQ== +flow-bin@^0.251.0: + version "0.251.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.251.0.tgz#8050039ae66c7f0b72f5eea9be036df78d644585" + integrity sha512-1ROmUJrBGLa19ufdOrx4Pu5NVeJbIGDEb2uCmjnr3nmBFVUVHfcB+wQ2RjHvDIloW46k7EwgKFOl5PdseRrrcQ== flush-write-stream@^1.0.2: version "1.1.1"