Browse Source

Resolved type name collisions (#8605)

pull/8641/head
GauravV-02 7 years ago
committed by Wei Zhu
parent
commit
fffde2d836
  1. 4
      components/auto-complete/index.tsx
  2. 2
      components/transfer/index.tsx
  3. 4
      components/transfer/search.tsx

4
components/auto-complete/index.tsx

@ -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;

2
components/transfer/index.tsx

@ -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() {
}

4
components/transfer/search.tsx

@ -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: '',
};

Loading…
Cancel
Save