I cannot type the inputProps of React-Select's Input Component. I checked the Input.d.ts, but it seems the InputProps interface is different from the other component such as ControlProps or OptionProps.
How should I implement it so that I can access the current input value and options inside the CustomInput component?
const CustomInput = (inputProps: any) => {
...
return (
<>
<components.Input {...inputProps} />
...
</>
);
};
<RcSelect
components={{
...
Input: CustomInput,
}}
...
/>
Using any works for my purpose, but I need to type it to eliminate lint warning.