Skip to content

Commit

Permalink
Revert D17518337: [flow][types-first] Export types so codemod can use…
Browse files Browse the repository at this point in the history
… them

Differential Revision:
D17518337

Original commit changeset: 253bf0fb4955

fbshipit-source-id: 4bd08c1061f6759f08f1186f5bd5a2c207c96315
  • Loading branch information
JoshuaGross authored and facebook-github-bot committed Sep 25, 2019
1 parent 2fbe956 commit c16b219
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Libraries/Animated/src/AnimatedMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import type {Mapping, EventConfig} from './AnimatedEvent';
* animation functions from AnimatedImplementation with empty animations for
* predictability in tests.
*/
export type CompositeAnimation = {
type CompositeAnimation = {
start: (callback?: ?EndCallback) => void,
stop: () => void,
reset: () => void,
Expand Down
1 change: 0 additions & 1 deletion Libraries/Components/Picker/Picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ type PickerItemProps = $ReadOnly<{|
/**
* Individual selectable item in a Picker.
*/
export type {PickerItem};
class PickerItem extends React.Component<PickerItemProps> {
render() {
// The items are not rendered directly
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/Touchable/TouchableHighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type AndroidProps = $ReadOnly<{|
nextFocusUp?: ?number,
|}>;

export type Props = $ReadOnly<{|
type Props = $ReadOnly<{|
...TouchableWithoutFeedbackProps,
...IOSProps,
...AndroidProps,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/Touchable/TouchableOpacity.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type TVProps = $ReadOnly<{|
tvParallaxProperties?: ?TVParallaxPropertiesType,
|}>;

export type Props = $ReadOnly<{|
type Props = $ReadOnly<{|
...TouchableWithoutFeedbackProps,
...TVProps,
activeOpacity?: ?number,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/ReactNative/AppRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import NativeHeadlessJsTaskSupport from './NativeHeadlessJsTaskSupport';
import HeadlessJsTaskError from './HeadlessJsTaskError';

type Task = (taskData: any) => Promise<void>;
export type TaskProvider = () => Task;
type TaskProvider = () => Task;
type TaskCanceller = () => void;
type TaskCancelProvider = () => TaskCanceller;

Expand Down
1 change: 0 additions & 1 deletion Libraries/Renderer/shims/ReactNativeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export type ViewConfigGetter = () => ReactNativeBaseComponentViewConfig<>;
/**
* Class only exists for its Flow type.
*/
export type {ReactNativeComponent};
class ReactNativeComponent<Props> extends React.Component<Props> {
blur(): void {}
focus(): void {}
Expand Down

0 comments on commit c16b219

Please sign in to comment.