Skip to content

Export React Native AttributeType Types #21661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/react-native-renderer/src/ReactNativeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type MeasureLayoutOnSuccessCallback = (
height: number,
) => void;

type AttributeType<T, V> =
export type AttributeType<T, V> =
| true
| $ReadOnly<{|
diff?: (arg1: T, arg2: T) => boolean,
Expand All @@ -42,7 +42,7 @@ type AttributeType<T, V> =

// 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,
Expand All @@ -53,7 +53,7 @@ export type AttributeConfiguration = $ReadOnly<{
...
}>;

type PartialAttributeConfiguration = $ReadOnly<{
export type PartialAttributeConfiguration = $ReadOnly<{
[propName: string]: AnyAttributeType,
style?: $ReadOnly<{
[propName: string]: AnyAttributeType,
Expand Down