Problem with Typing HOC react-select component
up vote
0
down vote
favorite
Currently, I am trying to build a HOC component of react-select to have default theme like this (in Typescript ). import * as React from 'react' import Select from 'react-select' import Theme from './theme' export class MySelect extends React.Component<__ReactSelectProps__> { render (): JSX.Element { return ( <Select {...this.props} theme={(theme) => Theme}/> ) } } My question is, what is the best way to grab get the typing ReactSelectProps that I need to properly type MySelect component?
reactjs typescript react-select
share | improve this question
asked Nov ...