Commit 3b6826e
committed
Flow: inference_mode=constrain_writes
This mode is going to be the new default in Flow going forward.
There was an unfortuante large number of suppressions in this update.
More on the changes can be found in this [Flow blog post](https://medium.com/flow-type/new-flow-language-rule-constrained-writes-4c70e375d190).
Added some of the required annotations using the provided codemod:
```sh
node_modules/.bin/flow codemod annotate-declarations --write .
```
ghstack-source-id: 0b168e1
Pull Request resolved: #254221 parent af9afe9 commit 3b6826e
File tree
70 files changed
+207
-88
lines changed- packages
- react-cache/src
- react-debug-tools/src
- react-devtools-core/src
- react-devtools-timeline/src/view-base
- react-dom-bindings/src
- client
- events
- react-fs/src
- react-native-renderer/src
- legacy-events
- react-pg/src
- react-reconciler/src
- react-server-dom-webpack/src
- react-server/src
- react-test-renderer/src
- react/src
- use-sync-external-store/src
- scripts/flow/config
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
70 files changed
+207
-88
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| 719 | + | |
719 | 720 | | |
720 | 721 | | |
721 | 722 | | |
722 | 723 | | |
723 | 724 | | |
724 | 725 | | |
725 | 726 | | |
726 | | - | |
| 727 | + | |
727 | 728 | | |
728 | 729 | | |
729 | 730 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| 169 | + | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
| 187 | + | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| |||
Lines changed: 2 additions & 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 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| |||
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
| |||
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
| 325 | + | |
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| |||
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
| 357 | + | |
354 | 358 | | |
355 | 359 | | |
356 | 360 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
802 | | - | |
| 802 | + | |
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
| 827 | + | |
827 | 828 | | |
828 | 829 | | |
829 | 830 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2269 | 2269 | | |
2270 | 2270 | | |
2271 | 2271 | | |
2272 | | - | |
| 2272 | + | |
2273 | 2273 | | |
2274 | 2274 | | |
2275 | 2275 | | |
| |||
2846 | 2846 | | |
2847 | 2847 | | |
2848 | 2848 | | |
2849 | | - | |
| 2849 | + | |
2850 | 2850 | | |
2851 | 2851 | | |
2852 | 2852 | | |
2853 | | - | |
| 2853 | + | |
2854 | 2854 | | |
2855 | 2855 | | |
2856 | 2856 | | |
| |||
2859 | 2859 | | |
2860 | 2860 | | |
2861 | 2861 | | |
| 2862 | + | |
2862 | 2863 | | |
2863 | 2864 | | |
2864 | 2865 | | |
| |||
3097 | 3098 | | |
3098 | 3099 | | |
3099 | 3100 | | |
3100 | | - | |
| 3101 | + | |
3101 | 3102 | | |
3102 | 3103 | | |
3103 | 3104 | | |
| |||
3256 | 3257 | | |
3257 | 3258 | | |
3258 | 3259 | | |
3259 | | - | |
| 3260 | + | |
3260 | 3261 | | |
3261 | 3262 | | |
3262 | 3263 | | |
| |||
3687 | 3688 | | |
3688 | 3689 | | |
3689 | 3690 | | |
| 3691 | + | |
3690 | 3692 | | |
3691 | 3693 | | |
3692 | 3694 | | |
3693 | 3695 | | |
| 3696 | + | |
3694 | 3697 | | |
3695 | 3698 | | |
3696 | 3699 | | |
3697 | 3700 | | |
| 3701 | + | |
3698 | 3702 | | |
3699 | 3703 | | |
3700 | 3704 | | |
3701 | 3705 | | |
| 3706 | + | |
3702 | 3707 | | |
3703 | 3708 | | |
3704 | 3709 | | |
| |||
3709 | 3714 | | |
3710 | 3715 | | |
3711 | 3716 | | |
| 3717 | + | |
3712 | 3718 | | |
3713 | 3719 | | |
3714 | 3720 | | |
| |||
4420 | 4426 | | |
4421 | 4427 | | |
4422 | 4428 | | |
4423 | | - | |
| 4429 | + | |
4424 | 4430 | | |
4425 | 4431 | | |
4426 | 4432 | | |
4427 | 4433 | | |
4428 | 4434 | | |
| 4435 | + | |
4429 | 4436 | | |
| 4437 | + | |
4430 | 4438 | | |
4431 | 4439 | | |
4432 | 4440 | | |
| |||
4443 | 4451 | | |
4444 | 4452 | | |
4445 | 4453 | | |
4446 | | - | |
| 4454 | + | |
4447 | 4455 | | |
4448 | 4456 | | |
4449 | 4457 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments