File tree Expand file tree Collapse file tree
dev-middleware/src/inspector-proxy
private/core-cli-utils/src/private Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414export type AssetDestPathResolver = 'android' | 'generic';
1515
1616export 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*/
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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
5757type NonAnimatedProps =
Original file line number Diff line number Diff line change @@ -133,8 +133,8 @@ type HermesEngineSourceType =
133133*/
134134
135135const 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' ,
Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ type ReactNativeDependenciesEngineSourceType =
124124*/
125125
126126const 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' ,
Original file line number Diff line number Diff 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
6060type BundlerWatch = {
61- + mode: 'watch',
61+ readonly mode: 'watch',
6262 callback?: (metro: ExecaPromise) => void,
6363};
6464
6565type BundlerBuild = {
66- + mode: 'bundle',
66+ readonly mode: 'bundle',
6767};
6868
6969type Bundler = BundlerWatch | BundlerBuild;
You can’t perform that action at this time.
0 commit comments