hc-oss / react-multi-select-component

Lightweight (~5KB gzipped) multiple selection dropdown component
https://codesandbox.io/s/react-multi-select-example-uqtgs
MIT License
387 stars 89 forks source link

Lost access to ISelectProps after bumping versions #630

Closed afmfe-iul closed 2 years ago

afmfe-iul commented 2 years ago

Is your feature request related to a problem? Please describe. After upgrading from version 4.1.12 to version 4.3.2 we lost access to ISelectProps, prior we were importing it from react-multi-select-component/dist/types/lib/interfaces.

Describe the solution you'd like ISelectProps would be accessible again.

Describe alternatives you've considered We made a copy of ISelectProps on our project.

Edit: Also lost access to the Option interface.

harshzalavadiya commented 2 years ago

@afmfe-iul Thanks for reporting this.

I've restored TypeScript types back and can be directly imported like below

import { MultiSelect, SelectProps, Option } from "react-multi-select-component";
afmfe-iul commented 2 years ago

Thanks for the quick action @harshzalavadiya, much appreciated! :)