UNPKG

@aliretail/react-materials-components

Version:
13 lines (12 loc) 588 B
/// <reference types="react" /> import { OptionsWithFormat } from '@ahooksjs/use-request/lib/types'; import { AutoCompleteProps } from '@alifd/next/types/select'; declare type RequestConfigProps = OptionsWithFormat<any, any, any, any> & { service: Record<string, any>; searchFormat?: (inputValue: string) => Record<string, any>; }; interface HookAutoCompleteProps extends Omit<AutoCompleteProps, 'onSearch' | 'onSearchClear'> { requestConfig: RequestConfigProps; } declare function HookAutoComplete(props: HookAutoCompleteProps): JSX.Element; export default HookAutoComplete;