Skip to content

Commit 88857d2

Browse files
marcoww6meta-codesync[bot]
authored andcommitted
manually fix a few more files (#56983)
Summary: X-link: react/metro#1719 Pull Request resolved: #56983 X-link: facebook/relay#5300 skipped by codemod. Fixing them manually Changelog: [Internal] Reviewed By: gkz Differential Revision: D106557702 fbshipit-source-id: 9228e5f8f855a362f72249117770d33d97bd4191
1 parent eaf7704 commit 88857d2

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

packages/assets-registry/registry.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
export type AssetDestPathResolver = 'android' | 'generic';
1515
1616
export type PackagerAsset = {
17-
+__packager_asset: boolean,
18-
+fileSystemLocation: string,
19-
+httpServerLocation: string,
20-
+width: ?number,
21-
+height: ?number,
22-
+scales: Array<number>,
23-
+hash: string,
24-
+name: string,
25-
+type: string,
26-
+resolver?: AssetDestPathResolver,
17+
readonly __packager_asset: boolean,
18+
readonly fileSystemLocation: string,
19+
readonly httpServerLocation: string,
20+
readonly width: ?number,
21+
readonly height: ?number,
22+
readonly scales: Array<number>,
23+
readonly hash: string,
24+
readonly name: string,
25+
readonly type: string,
26+
readonly resolver?: AssetDestPathResolver,
2727
...
2828
};
2929
*/

packages/dev-middleware/src/inspector-proxy/types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,5 @@ export type DeepReadOnly<T> =
162162
T extends ReadonlyArray<infer V>
163163
? ReadonlyArray<DeepReadOnly<V>>
164164
: T extends {...}
165-
? {+[K in keyof T]: DeepReadOnly<T[K]>}
165+
? {readonly [K in keyof T]: DeepReadOnly<T[K]>}
166166
: T;

packages/react-native/Libraries/Animated/createAnimatedComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export type WithAnimatedValue<out T> = T extends Builtin | Nullable
5151
: T extends ReadonlyArray<infer P>
5252
? ReadonlyArray<WithAnimatedValue<P>>
5353
: T extends {...}
54-
? {+[K in keyof T]: WithAnimatedValue<T[K]>}
54+
? {readonly [K in keyof T]: WithAnimatedValue<T[K]>}
5555
: T;
5656

5757
type NonAnimatedProps =

packages/react-native/scripts/ios-prebuild/hermes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ type HermesEngineSourceType =
133133
*/
134134

135135
const HermesEngineSourceTypes /*:{
136-
+DOWNLOAD_PREBUILD_TARBALL: "download_prebuild_tarball",
137-
+LOCAL_PREBUILT_TARBALL: "local_prebuilt_tarball"
136+
readonly DOWNLOAD_PREBUILD_TARBALL: "download_prebuild_tarball",
137+
readonly LOCAL_PREBUILT_TARBALL: "local_prebuilt_tarball"
138138
} */ = {
139139
LOCAL_PREBUILT_TARBALL: 'local_prebuilt_tarball',
140140
DOWNLOAD_PREBUILD_TARBALL: 'download_prebuild_tarball',

packages/react-native/scripts/ios-prebuild/reactNativeDependencies.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ type ReactNativeDependenciesEngineSourceType =
124124
*/
125125

126126
const ReactNativeDependenciesEngineSourceTypes /*: {
127-
+DOWNLOAD_PREBUILD_TARBALL: "download_prebuild_tarball",
128-
+DOWNLOAD_PREBUILT_NIGHTLY_TARBALL: "download_prebuilt_nightly_tarball"
127+
readonly DOWNLOAD_PREBUILD_TARBALL: "download_prebuild_tarball",
128+
readonly DOWNLOAD_PREBUILT_NIGHTLY_TARBALL: "download_prebuilt_nightly_tarball"
129129
} */ = {
130130
DOWNLOAD_PREBUILD_TARBALL: 'download_prebuild_tarball',
131131
DOWNLOAD_PREBUILT_NIGHTLY_TARBALL: 'download_prebuilt_nightly_tarball',

private/core-cli-utils/src/private/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type BundlerOptions = {
2727
config?: string,
2828
// Typically index.{ios,android}.js
2929
entryFile: string,
30-
+platform: 'ios' | 'android' | string,
30+
readonly platform: 'ios' | 'android' | string,
3131
dev: boolean,
3232
// Metro built main bundle
3333
outputJsBundle: string,
@@ -58,12 +58,12 @@ type HermesConfig = {
5858
};
5959
6060
type BundlerWatch = {
61-
+mode: 'watch',
61+
readonly mode: 'watch',
6262
callback?: (metro: ExecaPromise) => void,
6363
};
6464
6565
type BundlerBuild = {
66-
+mode: 'bundle',
66+
readonly mode: 'bundle',
6767
};
6868
6969
type Bundler = BundlerWatch | BundlerBuild;

0 commit comments

Comments
 (0)