Repository navigation
[*] Fix: Replace legacy Flow syntax with modern equivalents in .flow … - #8315
Merged
Merged
Conversation
…type stubs The upstream commit 1d349fe updated Flow syntax in source files, but the hand-maintained .flow type stubs were not updated to match. This causes Flow errors during www sync. Replacements: - `$ReadOnly<>` → `Readonly<>` - `$ReadOnlyArray<>` → `ReadonlyArray<>` - `$ReadOnlyMap<>` → `ReadonlyMap<>` - `$NonMaybeType<>` → `NonNullable<>` - `mixed` → `unknown` - `<T: Bound>` → `<T extends Bound>` - Remove `readonly` keyword from CommunityTeam.tsx interfaces
potatowagon
requested review from
acywatson,
etrepum,
fantactuka,
ivailop7,
takuyakanbr and
zurfyx
as code owners
April 8, 2026 16:08
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
potatowagon
marked this pull request as draft
April 8, 2026 16:08
potatowagon
marked this pull request as ready for review
April 8, 2026 16:19
etrepum
approved these changes
Apr 8, 2026
Collaborator
|
Big fan of the new almost-typescript syntax, makes things much easier to maintain! I bet an LLM could be prompted to do it at this point |
etrepum
reviewed
Apr 8, 2026
Comment on lines
-15
to
-25
| readonly avatar: string; | ||
| readonly links: { | ||
| readonly github: string; | ||
| avatar: string; | ||
| links: { | ||
| github: string; | ||
| }; | ||
| readonly location?: string; | ||
| readonly name: string; | ||
| readonly org?: string; | ||
| readonly orgLink?: string; | ||
| readonly sponsor?: string; | ||
| readonly title?: string; | ||
| readonly username: string; |
Collaborator
There was a problem hiding this comment.
Mostly just curious, but since this isn't flow and the data is only used in a readonly manner, what is the reason that these are changing? It's coming from an imported json file so the rationale for readonly here was to treat it as a frozen constant.
Merged
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…type stubs
The upstream commit 1d349fe updated Flow syntax in source files, but the hand-maintained .flow type stubs were not updated to match. This causes Flow errors during www sync.
Replacements:
$ReadOnly<>→Readonly<>$ReadOnlyArray<>→ReadonlyArray<>$ReadOnlyMap<>→ReadonlyMap<>$NonMaybeType<>→NonNullable<>mixed→unknown<T: Bound>→<T extends Bound>readonlykeyword from CommunityTeam.tsx interfacesDescription
Describe the changes in this pull request
Closes #
Test plan
same changes in D99817603 passes flow