lyft/react-javascript-to-typescript-transform

export types as well

ethanshar opened this issue · 2 comments

Hey,
Is it possible to export the generated types as well ? currently only the component is exported.
So in the following example I would like to also export SomeComponentProps.

import React, { Component } from "react";
import { View, Text } from "react-native";
type SomeComponentProps = {
  label?: string,
  color?: string
};
class SomeComponent extends Component<SomeComponentProps, {}> {
  state = {};
  render() {
    return (
      <View>
        <Text>SomeComponent</Text>
      </View>
    );
  }
}
export default SomeComponent;

Yes. We should export types if component is exported. A PR is welcome!

Thank you for you contribution to this repository.

Closing this contribution as this repository is being archived.