@samitouri / QOS-React-2 / commits / cb30388d10

Export React Native `AttributeType` Types (#21661)

Timothy Yung committed Jun 11, 2021 at 00:45 UTC cb30388d10240363615fef31eb16b9d4e2925bb9
1 file changed +3 -3
packages/react-native-renderer/src/ReactNativeTypes.js
+3 -3
@@ -33,7 +33,7 @@ export type MeasureLayoutOnSuccessCallback = (
33 height: number,
34 ) => void;
35
36 -type AttributeType<T, V> =
36 +export type AttributeType<T, V> =
37 | true
38 | $ReadOnly<{|
39 diff?: (arg1: T, arg2: T) => boolean,
@@ -42,7 +42,7 @@ type AttributeType<T, V> =
42
43 // We either force that `diff` and `process` always use mixed,
44 // or we allow them to define specific types and use this hack
45 -type AnyAttributeType = AttributeType<$FlowFixMe, $FlowFixMe>;
45 +export type AnyAttributeType = AttributeType<$FlowFixMe, $FlowFixMe>;
46
47 export type AttributeConfiguration = $ReadOnly<{
48 [propName: string]: AnyAttributeType,
@@ -53,7 +53,7 @@ export type AttributeConfiguration = $ReadOnly<{
53 ...
54 }>;
55
56 -type PartialAttributeConfiguration = $ReadOnly<{
56 +export type PartialAttributeConfiguration = $ReadOnly<{
57 [propName: string]: AnyAttributeType,
58 style?: $ReadOnly<{
59 [propName: string]: AnyAttributeType,