Skip to content

Commit

Permalink
🐛 Omit AutoComplete loading type
Browse files Browse the repository at this point in the history
close #17432
  • Loading branch information
afc163 committed Jul 3, 2019
1 parent 73d173d commit 0d35b1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/auto-complete/index.tsx
Expand Up @@ -5,6 +5,7 @@ import InputElement from './InputElement';
import Input, { InputProps } from '../input';
import Select, { AbstractSelectProps, SelectValue, OptionProps, OptGroupProps } from '../select';
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
import { Omit } from '../_util/type';

export interface DataSourceItemObject {
value: string;
Expand All @@ -26,7 +27,7 @@ export type ValidInputElement =
| HTMLTextAreaElement
| React.ReactElement<AutoCompleteInputProps>;

export interface AutoCompleteProps extends AbstractSelectProps {
export interface AutoCompleteProps extends Omit<AbstractSelectProps, 'loading'> {
value?: SelectValue;
defaultValue?: SelectValue;
dataSource?: DataSourceItemType[];
Expand Down

0 comments on commit 0d35b1e

Please sign in to comment.