Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>generate-connect-typesNew to Visual Studio Code? Get it now.
generate-connect-types

generate-connect-types

Alex Driaguine

|
214 installs
| (0) | Free
Generate typings for connect props
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

generate-connect-typs-code README

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

Features

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
}

Release Notes

0.0.1

Initial release

Todo

  • [ ] some images in description part
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft