Skip to content

Commit 9438361

Browse files
marcoww6meta-codesync[bot]
authored andcommitted
Transform $Values to Values (#55136)
Summary: Pull Request resolved: #55136 Stacking another diff on top of hermes release. Let's see if there's still any CI failures. ` js1 flow-runner codemod flow/transformUtilityType --format-files=false --legacy-type='$Values' xplat/js` drop-conflicts Reviewed By: gkz Differential Revision: D90549059 fbshipit-source-id: e07faa80b5ed0a675a2bc9bcc45d4084aaae9eda
1 parent ebf117c commit 9438361

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type PermissionsType = Readonly<{
7878
}>;
7979

8080
export type PermissionStatus = 'granted' | 'denied' | 'never_ask_again';
81-
export type Permission = $Values<PermissionsType>;
81+
export type Permission = Values<PermissionsType>;
8282

8383
const PERMISSIONS = Object.freeze({
8484
READ_CALENDAR: 'android.permission.READ_CALENDAR',

packages/react-native/Libraries/StyleSheet/StyleSheetTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ export type ____Styles_Internal = {
11051105
type FlattenDepthLimiter = [void, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
11061106
type ____FlattenStyleProp_Helper<
11071107
+TStyleProp: StyleProp<unknown>,
1108-
Depth: $Values<FlattenDepthLimiter> = 9,
1108+
Depth: Values<FlattenDepthLimiter> = 9,
11091109
> = Depth extends 0
11101110
? empty
11111111
: TStyleProp extends null | void | false | ''

packages/react-native/Libraries/StyleSheet/private/_TransformStyle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type ValueOfUnion<T, K> = T extends any
2323
type MergeUnion<T> = {
2424
[K in KeysOfUnion<T>]?: ValueOfUnion<T, K>,
2525
};
26-
type MaximumOneOf<T: {...}> = $Values<{
26+
type MaximumOneOf<T: {...}> = Values<{
2727
[K in keyof T]: $Exact<{
2828
[P in keyof T]?: P extends K ? T[P] : empty,
2929
}>,

packages/react-native/src/private/animated/NativeAnimatedHelper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function createNativeOperations(): NonNullable<typeof NativeAnimatedModule> {
103103
methodNames.push('connectAnimatedNodeToShadowNodeFamily');
104104
}
105105
const nativeOperations: {
106-
[$Values<typeof methodNames>]: (...$ReadOnlyArray<unknown>) => void,
106+
[Values<typeof methodNames>]: (...$ReadOnlyArray<unknown>) => void,
107107
} = {};
108108
if (isSingleOpBatching) {
109109
for (let ii = 0, length = methodNames.length; ii < length; ii++) {

scripts/js-api/diff-api-snapshot/diffApiSnapshot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Result = {
2020
} as const;
2121

2222
type Output = {
23-
result: $Values<typeof Result>,
23+
result: Values<typeof Result>,
2424
changedApis: Array<string>,
2525
};
2626

0 commit comments

Comments
 (0)