[flow] Bump flow to v0.307.1 (#36199)

## Summary

Notable changes:
- Only $FlowFixMe, $FlowExpectedError suppression comments are supported
- All suppression comments need error code
- A lot of new invalid-compare and constant-condition errors suppressed.
These errors reveal potential logical bugs

## How did you test this change?

`yarn flow-ci`
This commit is contained in:
Sam Zhou
2026-06-05 13:54:38 -04:00
committed by GitHub
parent 384e36ba10
commit 78cf315a48
197 changed files with 977 additions and 321 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ declare class ScrollTimeline extends AnimationTimeline {
// $FlowFixMe[libdef-override]
declare opaque type React$Element<
+ElementType: React$ElementType,
+P = React$ElementProps<ElementType>,
+P = React$ElementConfig<ElementType>,
>: {
+type: ElementType,
+props: P,