Skip to content

Replace literal dictionary keys with properties or Record - #60602

Open
SamChou19815 wants to merge 1 commit into
mainfrom
export-D136526662
Open

SamChou19815 wants to merge 1 commit into
mainfrom
export-D136526662

Conversation

@SamChou19815

Copy link
Copy Markdown
Member

Summary:
Replaces Flow object indexers whose key types are literal unions (for example {[key: 'a' | 'b']: V}) with explicit properties or Record / Partial<Record> across React Native and Metro packages.

Dictionary indexers do not require literal union keys to be present and treat finite key sets as dynamic dictionaries; explicit properties and Record express these finite object shapes directly with no runtime changes.

Changelog: [Internal]

Differential Revision: D136526662

Summary:
Replaces Flow object indexers whose key types are literal unions (for example `{[key: 'a' | 'b']: V}`) with explicit properties or `Record` / `Partial<Record>` across React Native and Metro packages.

Dictionary indexers do not require literal union keys to be present and treat finite key sets as dynamic dictionaries; explicit properties and `Record` express these finite object shapes directly with no runtime changes.

Changelog: [Internal]

Differential Revision: D136526662
@meta-codesync

meta-codesync Bot commented Dec 5, 2026

Copy link
Copy Markdown

@SamChou19815 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D136526662.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant