You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
InternshipProject/node_modules/antd/lib/auto-complete/index.d.ts

27 lines
1.1 KiB

/**
* TODO: 4.0
*
* - Remove `dataSource`
* - `size` not work with customizeInput
* - CustomizeInput not feedback `ENTER` key since accessibility enhancement
*/
import * as React from 'react';
import type { BaseSelectRef } from 'rc-select';
import { BaseOptionType, DefaultOptionType, InternalSelectProps } from '../select';
export interface DataSourceItemObject {
value: string;
text: string;
}
export declare type DataSourceItemType = DataSourceItemObject | React.ReactNode;
export interface AutoCompleteProps<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType> extends Omit<InternalSelectProps<ValueType, OptionType>, 'inputIcon' | 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> {
dataSource?: DataSourceItemType[];
}
declare const RefAutoComplete: (<ValueType = any, OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(props: AutoCompleteProps<ValueType, OptionType> & {
children?: React.ReactNode;
} & {
ref?: React.Ref<BaseSelectRef> | undefined;
}) => React.ReactElement) & {
Option: import("rc-select/lib/Option").OptionFC;
};
export default RefAutoComplete;