Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions packages/assets-registry/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
export type AssetDestPathResolver = 'android' | 'generic';

export type PackagerAsset = {
+__packager_asset: boolean,
+fileSystemLocation: string,
+httpServerLocation: string,
+width: ?number,
+height: ?number,
+scales: Array<number>,
+hash: string,
+name: string,
+type: string,
+resolver?: AssetDestPathResolver,
readonly __packager_asset: boolean,
readonly fileSystemLocation: string,
readonly httpServerLocation: string,
readonly width: ?number,
readonly height: ?number,
readonly scales: Array<number>,
readonly hash: string,
readonly name: string,
readonly type: string,
readonly resolver?: AssetDestPathResolver,
...
};
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/dev-middleware/src/inspector-proxy/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ export type DeepReadOnly<T> =
T extends ReadonlyArray<infer V>
? ReadonlyArray<DeepReadOnly<V>>
: T extends {...}
? {+[K in keyof T]: DeepReadOnly<T[K]>}
? {readonly [K in keyof T]: DeepReadOnly<T[K]>}
: T;
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export type WithAnimatedValue<out T> = T extends Builtin | Nullable
: T extends ReadonlyArray<infer P>
? ReadonlyArray<WithAnimatedValue<P>>
: T extends {...}
? {+[K in keyof T]: WithAnimatedValue<T[K]>}
? {readonly [K in keyof T]: WithAnimatedValue<T[K]>}
: T;

type NonAnimatedProps =
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/scripts/ios-prebuild/hermes.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ type HermesEngineSourceType =
*/

const HermesEngineSourceTypes /*:{
+DOWNLOAD_PREBUILD_TARBALL: "download_prebuild_tarball",
+LOCAL_PREBUILT_TARBALL: "local_prebuilt_tarball"
readonly DOWNLOAD_PREBUILD_TARBALL: "download_prebuild_tarball",
readonly LOCAL_PREBUILT_TARBALL: "local_prebuilt_tarball"
} */ = {
LOCAL_PREBUILT_TARBALL: 'local_prebuilt_tarball',
DOWNLOAD_PREBUILD_TARBALL: 'download_prebuild_tarball',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ type ReactNativeDependenciesEngineSourceType =
*/

const ReactNativeDependenciesEngineSourceTypes /*: {
+DOWNLOAD_PREBUILD_TARBALL: "download_prebuild_tarball",
+DOWNLOAD_PREBUILT_NIGHTLY_TARBALL: "download_prebuilt_nightly_tarball"
readonly DOWNLOAD_PREBUILD_TARBALL: "download_prebuild_tarball",
readonly DOWNLOAD_PREBUILT_NIGHTLY_TARBALL: "download_prebuilt_nightly_tarball"
} */ = {
DOWNLOAD_PREBUILD_TARBALL: 'download_prebuild_tarball',
DOWNLOAD_PREBUILT_NIGHTLY_TARBALL: 'download_prebuilt_nightly_tarball',
Expand Down
6 changes: 3 additions & 3 deletions private/core-cli-utils/src/private/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type BundlerOptions = {
config?: string,
// Typically index.{ios,android}.js
entryFile: string,
+platform: 'ios' | 'android' | string,
readonly platform: 'ios' | 'android' | string,
dev: boolean,
// Metro built main bundle
outputJsBundle: string,
Expand Down Expand Up @@ -58,12 +58,12 @@ type HermesConfig = {
};

type BundlerWatch = {
+mode: 'watch',
readonly mode: 'watch',
callback?: (metro: ExecaPromise) => void,
};

type BundlerBuild = {
+mode: 'bundle',
readonly mode: 'bundle',
};

type Bundler = BundlerWatch | BundlerBuild;
Expand Down
Loading