How do I create a typescript definition file (d.ts) for an existing redux connected (jsx)component?
问题 I'm adding new components written in TypeScript(tsx) to an existing codebase consisting of vanilla ES6 react components(jsx). When importing the existing jsx-components into a tsx-component I'm adding type defintions for the jsx-components. My issue is how do I add a type definition for a jsx-component that is connected to redux using connect Say I have an existing jsx component: class DateField extends React.Component { ... } function mapStateToProps(state) { return { locale: state