Skip to content

Commit

Permalink
Improve AutoComplete types
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Jun 9, 2018
1 parent ae6de36 commit 4d6f8e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/auto-complete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import Input from '../input';
import InputElement from './InputElement';

export interface DataSourceItemObject { value: string; text: string; }
export type DataSourceItemType = string | DataSourceItemObject;
export type DataSourceItemType =
string |
DataSourceItemObject |
React.ReactElement<OptionProps> |
React.ReactElement<OptGroupProps>;

export interface AutoCompleteInputProps {
onChange?: React.FormEventHandler<any>;
Expand Down

0 comments on commit 4d6f8e9

Please sign in to comment.