From 9f297fac2fd4363a0a69f3b065f0d7fad42183c0 Mon Sep 17 00:00:00 2001 From: Gerard Rovira Date: Wed, 5 Apr 2023 14:39:33 +0100 Subject: [PATCH] Upgrade Flow to 0.2 (#4264) --- .flowconfig | 6 +++++- package-lock.json | 14 +++++++------- package.json | 2 +- .../flow/LexicalContentEditable.js.flow | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.flowconfig b/.flowconfig index d7df72cf76d..7a082fb7c36 100644 --- a/.flowconfig +++ b/.flowconfig @@ -6,6 +6,7 @@ .*/npm/.* .*/.tempUserDataDir/.* .*/node_modules/.* +.*/libdefs/.* [include] ./packages/ @@ -112,7 +113,7 @@ suppress_type=$FixMe suppress_type=$FlowExpectedError [libs] -./libdefs/ +./libdefs/yjs.js ./scripts/flow/environment.js ./flow-typed/yjs.js ./flow-typed/prism.js @@ -120,3 +121,6 @@ suppress_type=$FlowExpectedError [strict] nonstrict-import unclear-type + +[version] +^0.203.0 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index ca8ce1b9176..cf1401f19b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -57,7 +57,7 @@ "eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-simple-import-sort": "^7.0.0", "eslint-plugin-sort-keys-fix": "^1.1.2", - "flow-bin": "^0.171.0", + "flow-bin": "^0.203.1", "fs-extra": "^10.0.0", "gen-flow-files": "^0.4.11", "glob": "^7.2.0", @@ -10132,9 +10132,9 @@ "dev": true }, "node_modules/flow-bin": { - "version": "0.171.0", - "resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.171.0.tgz", - "integrity": "sha512-2HEiXAyE60ztGs+loFk6XSskL69THL6tSjzopUcbwgfrdbuZ5Jhv23qh1jUKP5AZJh0NNwxaFZ6To2p6xR+GEA==", + "version": "0.203.1", + "resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.203.1.tgz", + "integrity": "sha512-W/SX7QnRmBYS0TjfgtGb9ltPZzlsNeTZ7wA1yqwChxbLaQtrxGtO4K5GKtjRwAtucMQSebB7Ao++u21fRmC4TQ==", "dev": true, "bin": { "flow": "cli.js" @@ -31524,9 +31524,9 @@ "dev": true }, "flow-bin": { - "version": "0.171.0", - "resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.171.0.tgz", - "integrity": "sha512-2HEiXAyE60ztGs+loFk6XSskL69THL6tSjzopUcbwgfrdbuZ5Jhv23qh1jUKP5AZJh0NNwxaFZ6To2p6xR+GEA==", + "version": "0.203.1", + "resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.203.1.tgz", + "integrity": "sha512-W/SX7QnRmBYS0TjfgtGb9ltPZzlsNeTZ7wA1yqwChxbLaQtrxGtO4K5GKtjRwAtucMQSebB7Ao++u21fRmC4TQ==", "dev": true }, "flux": { diff --git a/package.json b/package.json index 6c0d6dd6fd6..c5db11bf78b 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-simple-import-sort": "^7.0.0", "eslint-plugin-sort-keys-fix": "^1.1.2", - "flow-bin": "^0.171.0", + "flow-bin": "^0.203.1", "fs-extra": "^10.0.0", "gen-flow-files": "^0.4.11", "glob": "^7.2.0", diff --git a/packages/lexical-react/flow/LexicalContentEditable.js.flow b/packages/lexical-react/flow/LexicalContentEditable.js.flow index 8076822b85c..f9289f01239 100644 --- a/packages/lexical-react/flow/LexicalContentEditable.js.flow +++ b/packages/lexical-react/flow/LexicalContentEditable.js.flow @@ -10,7 +10,7 @@ import * as React from 'react'; export type Props = $ReadOnly<{ - ...$Partial, + ...Partial, ariaActiveDescendant?: HTMLDivElement['aria-activedescendant'], ariaAutoComplete?: HTMLDivElement['aria-autocomplete'], ariaControls?: HTMLDivElement['aria-controls'],