diff --git a/packages/react-native-renderer/src/ReactNativeTypes.js b/packages/react-native-renderer/src/ReactNativeTypes.js index 4f42833511d2c..55150e83517e6 100644 --- a/packages/react-native-renderer/src/ReactNativeTypes.js +++ b/packages/react-native-renderer/src/ReactNativeTypes.js @@ -33,7 +33,7 @@ export type MeasureLayoutOnSuccessCallback = ( height: number, ) => void; -type AttributeType = +export type AttributeType = | true | $ReadOnly<{| diff?: (arg1: T, arg2: T) => boolean, @@ -42,7 +42,7 @@ type AttributeType = // We either force that `diff` and `process` always use mixed, // or we allow them to define specific types and use this hack -type AnyAttributeType = AttributeType<$FlowFixMe, $FlowFixMe>; +export type AnyAttributeType = AttributeType<$FlowFixMe, $FlowFixMe>; export type AttributeConfiguration = $ReadOnly<{ [propName: string]: AnyAttributeType, @@ -53,7 +53,7 @@ export type AttributeConfiguration = $ReadOnly<{ ... }>; -type PartialAttributeConfiguration = $ReadOnly<{ +export type PartialAttributeConfiguration = $ReadOnly<{ [propName: string]: AnyAttributeType, style?: $ReadOnly<{ [propName: string]: AnyAttributeType,