Skip to content

Commit e4619a4

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Add annotations or make things readonly to prepare for object literal soundness fix in xplat/js: 1/n (#51912)
Summary: Pull Request resolved: #51912 Changelog: [Internal] Reviewed By: marcoww6 Differential Revision: D76292113 fbshipit-source-id: facaf3e503b69ba41df7842b0e92b7094c271874
1 parent 6104ccd commit e4619a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/rn-tester/js/components/RNTesterTheme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {createContext} from 'react';
1515
import {use} from 'react';
1616
import {Appearance} from 'react-native';
1717

18-
export type RNTesterTheme = {
18+
export type RNTesterTheme = $ReadOnly<{
1919
LabelColor: ColorValue,
2020
SecondaryLabelColor: ColorValue,
2121
TertiaryLabelColor: ColorValue,
@@ -54,7 +54,7 @@ export type RNTesterTheme = {
5454
NavBarPlaygroundActiveIcon: ImageSource,
5555
NavBarPlaygroundInactiveIcon: ImageSource,
5656
...
57-
};
57+
}>;
5858

5959
export const RNTesterLightTheme = {
6060
LabelColor: '#000000ff',

0 commit comments

Comments
 (0)