UNPKG

react-dadata

Version:

React-компонент для подсказок адресов, организаций и банков с помощью сервиса DaData.ru

21 lines (20 loc) 852 B
import { type ReactNode } from 'react'; import { type BaseProps, BaseSuggestions } from '../../base-suggestions'; import type { DaDataParty, DaDataPartyStatus, DaDataPartySuggestion, DaDataPartyType } from './party-russia-types'; type Dictionary = { [key: string]: any; }; interface Props extends BaseProps<DaDataParty> { filterStatus?: DaDataPartyStatus[]; filterType?: DaDataPartyType; filterOkved?: string[]; filterLocations?: Dictionary[]; filterLocationsBoost?: Dictionary[]; } export declare class PartySuggestions extends BaseSuggestions<DaDataParty, Props> { loadSuggestionsUrl: string; getLoadSuggestionsData: () => Record<string, unknown>; protected getSuggestionKey: (suggestion: DaDataPartySuggestion) => string; protected renderOption: (suggestion: DaDataPartySuggestion) => ReactNode; } export {};