This is a vs code extension that generates interface for your connected props. It uses generate-connect-types
under the hood
which can be found here
Given a input like
import {connect} from 'react-redux'
import {State} from './somewhere-appstate'
const t = connect(
(state: State) => ({
index: state.index,
name: state.name,
ble: state.bla,
}),
() => ({
dispatch: () => console.log('hej'),
}),
)(Comp)
it outputs
interface ConnectProps {
index: number
name: string
ble: Bla
dispatch: () => void
}
Initial release
- some images in description part