mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Transform $Values to Values (#55136)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
1 parent
ebf117ca95
commit
94383613d8
5 files changed
+5
-5
No files matched your search
@@ -78,7 +78,7 @@ type PermissionsType = Readonly<{
|
||||
}>;
|
||||
|
||||
export type PermissionStatus = 'granted' | 'denied' | 'never_ask_again';
|
||||
export type Permission = $Values<PermissionsType>;
|
||||
export type Permission = Values<PermissionsType>;
|
||||
|
||||
const PERMISSIONS = Object.freeze({
|
||||
READ_CALENDAR: 'android.permission.READ_CALENDAR',
|
||||
|
||||
@@ -1105,7 +1105,7 @@ export type ____Styles_Internal = {
|
||||
type FlattenDepthLimiter = [void, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
||||
type ____FlattenStyleProp_Helper<
|
||||
+TStyleProp: StyleProp<unknown>,
|
||||
Depth: $Values<FlattenDepthLimiter> = 9,
|
||||
Depth: Values<FlattenDepthLimiter> = 9,
|
||||
> = Depth extends 0
|
||||
? empty
|
||||
: TStyleProp extends null | void | false | ''
|
||||
|
||||
@@ -23,7 +23,7 @@ type ValueOfUnion<T, K> = T extends any
|
||||
type MergeUnion<T> = {
|
||||
[K in KeysOfUnion<T>]?: ValueOfUnion<T, K>,
|
||||
};
|
||||
type MaximumOneOf<T: {...}> = $Values<{
|
||||
type MaximumOneOf<T: {...}> = Values<{
|
||||
[K in keyof T]: $Exact<{
|
||||
[P in keyof T]?: P extends K ? T[P] : empty,
|
||||
}>,
|
||||
|
||||
@@ -103,7 +103,7 @@ function createNativeOperations(): NonNullable<typeof NativeAnimatedModule> {
|
||||
methodNames.push('connectAnimatedNodeToShadowNodeFamily');
|
||||
}
|
||||
const nativeOperations: {
|
||||
[$Values<typeof methodNames>]: (...$ReadOnlyArray<unknown>) => void,
|
||||
[Values<typeof methodNames>]: (...$ReadOnlyArray<unknown>) => void,
|
||||
} = {};
|
||||
if (isSingleOpBatching) {
|
||||
for (let ii = 0, length = methodNames.length; ii < length; ii++) {
|
||||
|
||||
@@ -20,7 +20,7 @@ const Result = {
|
||||
} as const;
|
||||
|
||||
type Output = {
|
||||
result: $Values<typeof Result>,
|
||||
result: Values<typeof Result>,
|
||||
changedApis: Array<string>,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user