// @flow
import { type SelectorItemProps } from '../selector-item/selector-item.proptypes';
import { type FormInputProps } from '../../form-input/form-input.proptypes';
import type { FormFieldError } from '../../forms.proptypes';

export type SelectorItemWithInputProps = {|
  ...SelectorItemProps,
  onInputChange: $PropertyType<FormInputProps<string | number>, 'onChange'>,
  inputValue: $PropertyType<FormInputProps<string | number>, 'value'>,
  inputProps?: $Diff<
    FormInputProps<string | number>,
    {|
      onChange: *,
    |},
  >,
  inputError?: FormFieldError,
|};
