Commit 623ba91
Revert recent Flow syntax codemods in react-native-github (facebook#56998)
Summary:
Pull Request resolved: facebook#56998
Reverts the recent Flow syntax codemods applied across `packages/`, `private/`, and `scripts/` in react-native-github. Specifically restores the previous form for:
- `+T` / `+Instance` style variance annotations on generic type parameters that had been converted to the newer `out T` / `in T` keyword form.
- `+field:` covariant object/interface properties that had been converted to the `readonly field:` modifier form.
- `+[K in keyof T]:` mapped-type covariance that had been converted to `readonly [K in keyof T]:`.
These are purely Flow type-annotation changes with no runtime behavior impact, restoring the form that the rest of the toolchain (in particular Fantom) already supports.
Changelog: [Internal]
Reviewed By: christophpurrer
Differential Revision: D1068131021 parent 6720760 commit 623ba91
232 files changed
Lines changed: 1507 additions & 1688 deletions
File tree
- packages
- assets-registry
- dev-middleware/src
- __tests__
- inspector-proxy
- types
- react-native-codegen
- e2e/deep_imports/__test_fixtures__/modules
- src
- generators
- components
- parsers
- flow/components
- react-native-compatibility-check/src/__tests__/__fixtures__
- native-component-all-types
- native-component-with-command-all-basic-types-arrays
- native-component-with-command-all-basic-types
- native-component-with-command-changed
- native-component-with-command-extra-arg
- native-component-with-command-extra-command
- native-component-with-command
- native-module-before-after-types-removed
- native-module-before-after-types-type-changed
- native-module-before-after-types
- native-module-changed
- native-module-get-constants-added-optional-constant-readonly
- native-module-get-constants-added-optional-constant
- native-module-get-constants-added-required-constant-readonly
- native-module-get-constants-added-required-constant
- native-module-get-constants-readonly
- native-module-get-constants
- native-module-nested-alias-changed
- native-module-nested-alias
- native-module-nested-changed
- native-module-nested-nullable
- native-module-nested-optional
- native-module-nested
- native-module-type-diffing-types
- native-module-with-dictionary-changed
- native-module-with-dictionary
- native-module-with-enum-changes
- native-module-with-enum-from-native-changes
- native-module-with-enum-from-native-type-changes
- native-module-with-enum-from-native-value-changes
- native-module-with-enum-from-native
- native-module-with-enum-type-changes
- native-module-with-enum-value-changes
- native-module-with-enum
- native-module-with-optional-argument
- native-module-with-union-boolean-changes
- native-module-with-union-boolean
- native-module-with-union-changes
- native-module-with-union-confusing-string-literals
- native-module-with-union-from-native-changes
- native-module-with-union-from-native
- native-module-with-union-number-changes
- native-module-with-union-number
- native-module-with-union-object-added
- native-module-with-union-object-changes
- native-module-with-union-object
- native-module-with-union-type-changes
- native-module-with-union
- native-module
- react-native
- Libraries
- Animated
- nodes
- Blob
- Components
- ScrollView
- TextInput
- Touchable
- View
- Core
- Image
- NativeComponent
- ReactNative
- StyleSheet
- private
- Text
- TurboModule
- Types
- Utilities
- differ
- vendor/emitter
- flow
- scripts/ios-prebuild
- src/private
- animated
- components/virtualcollection
- column
- row
- devsupport
- rndevtools/specs
- renderer/errorhandling
- specs_DEPRECATED
- components
- modules
- testing/fantom/specs
- viewtransition/specs
- webapis
- dom
- events
- nodes/specs
- oldstylecollections
- errors
- geometry
- html/events
- idlecallbacks
- __tests__
- specs
- intersectionobserver/specs
- microtasks/specs
- mutationobserver
- specs
- performance
- internals
- specs
- utils
- websockets/events
- xhr/events
- rn-tester
- NativeComponentExample/js
- NativeCxxModuleExample
- NativeModuleExample
- js/examples/Experimental/PlatformTest
- scripts
- private
- core-cli-utils/src/private
- helloworld/lib
- react-native-fantom/src
- scripts
- js-api/build-types/transforms/typescript/simplifyTypes
- releases/utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
109 | 108 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 109 | + | |
| 110 | + | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 50 | + | |
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
| |||
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
66 | | - | |
| 63 | + | |
67 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
packages/react-native-codegen/e2e/deep_imports/__test_fixtures__/modules/NativeArrayTurboModule.js
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
0 commit comments