Skip to content

Commit 6de32a5

Browse files
authored
Update Flow to 0.263 (#34269)
This update was a bit more involved. - `React$Component` was removed, I replaced it with Flow component types. - Flow removed shipping the standard library. This adds the environment libraries back from `flow-typed` which seemed to have changed slightly (probably got more precise and less `any`s). Suppresses some new type errors.
1 parent 698bb4d commit 6de32a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+14129
-90
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ packages/react-devtools-shared/src/hooks/__tests__/__source__/__untransformed__/
2828
packages/react-devtools-shell/dist
2929
packages/react-devtools-timeline/dist
3030
packages/react-devtools-timeline/static
31+
32+
# Imported third-party Flow types
33+
flow-typed/

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ module.exports = {
581581
IteratorResult: 'readonly',
582582
JSONValue: 'readonly',
583583
JSResourceReference: 'readonly',
584+
mixin$Animatable: 'readonly',
584585
MouseEventHandler: 'readonly',
585586
NavigateEvent: 'readonly',
586587
PropagationPhases: 'readonly',
@@ -619,7 +620,6 @@ module.exports = {
619620
PropertyIndexedKeyframes: 'readonly',
620621
KeyframeAnimationOptions: 'readonly',
621622
GetAnimationsOptions: 'readonly',
622-
Animatable: 'readonly',
623623
ScrollTimeline: 'readonly',
624624
EventListenerOptionsOrUseCapture: 'readonly',
625625
FocusOptions: 'readonly',

flow-typed.config.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"env": [
3+
"bom",
4+
"cssom",
5+
"dom",
6+
"geometry",
7+
"html",
8+
"node",
9+
"serviceworkers",
10+
"streams",
11+
"web-animations"
12+
],
13+
"ignore": [
14+
"create-react-class",
15+
"jest",
16+
"regenerator-runtime",
17+
"webpack",
18+
"ws"
19+
]
20+
}

0 commit comments

Comments
 (0)