Resolved type name collisions (#8605)

This commit is contained in:
GauravV-02 2017-12-13 21:49:44 -05:00 committed by Wei Zhu
parent a9797ac4ce
commit fffde2d836
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ import InputElement from './InputElement';
export interface DataSourceItemObject { value: string; text: string; }
export type DataSourceItemType = string | DataSourceItemObject;
export interface InputProps {
export interface AutoCompleteInputProps {
onChange?: React.FormEventHandler<any>;
value: any;
}
@ -16,7 +16,7 @@ export interface InputProps {
export type ValidInputElement =
HTMLInputElement |
HTMLTextAreaElement |
React.ReactElement<InputProps>;
React.ReactElement<AutoCompleteInputProps>;
export interface AutoCompleteProps extends AbstractSelectProps {
value?: SelectValue;

View File

@ -9,7 +9,7 @@ import defaultLocale from '../locale-provider/default';
export { TransferListProps } from './list';
export { TransferOperationProps } from './operation';
export { SearchProps } from './search';
export { TransferSearchProps } from './search';
function noop() {
}

View File

@ -2,7 +2,7 @@ import * as React from 'react';
import Icon from '../icon';
import Input from '../input';
export interface SearchProps {
export interface TransferSearchProps {
prefixCls?: string;
placeholder?: string;
onChange?: (e: React.FormEvent<any>) => void;
@ -10,7 +10,7 @@ export interface SearchProps {
value?: any;
}
export default class Search extends React.Component<SearchProps, any> {
export default class Search extends React.Component<TransferSearchProps, any> {
static defaultProps = {
placeholder: '',
};