GeezerVison is showing github.com — Export React Native `AttributeType` Types (#21661) · react/react@cb30388
File tree
Expand file treeCollapse file tree
Open diff view settings
packages/react-native-renderer/src
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/react-native-renderer/src/ReactNativeTypes.js +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -33,7 +33,7 @@ export type MeasureLayoutOnSuccessCallback = ( |
33 | 33 | height: number, |
34 | 34 | ) => void; |
35 | 35 |
|
36 | | -type AttributeType<T, V> = |
| 36 | +export type AttributeType<T, V> = |
37 | 37 | | true |
38 | 38 | | $ReadOnly<{| |
39 | 39 | diff?: (arg1: T, arg2: T) => boolean, |
@@ -42,7 +42,7 @@ type AttributeType<T, V> = |
42 | 42 |
|
43 | 43 | // We either force that `diff` and `process` always use mixed, |
44 | 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 | 46 |
|
47 | 47 | export type AttributeConfiguration = $ReadOnly<{ |
48 | 48 | [propName: string]: AnyAttributeType, |
@@ -53,7 +53,7 @@ export type AttributeConfiguration = $ReadOnly<{ |
53 | 53 | ... |
54 | 54 | }>; |
55 | 55 |
|
56 | | -type PartialAttributeConfiguration = $ReadOnly<{ |
| 56 | +export type PartialAttributeConfiguration = $ReadOnly<{ |
57 | 57 | [propName: string]: AnyAttributeType, |
58 | 58 | style?: $ReadOnly<{ |
59 | 59 | [propName: string]: AnyAttributeType, |
|