UNPKG

react-dadata

Version:

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

10 lines (9 loc) 425 B
import type { DaDataSuggestion } from './core-types'; import type { HttpCache } from './http-cache'; export interface RequestOptions { headers: { [header: string]: string; }; json: any; } export declare const makeRequest: <SuggestionType>(method: string, endpoint: string, data: RequestOptions, cache: HttpCache | null, onReceiveData: (response: Array<DaDataSuggestion<SuggestionType>>) => void) => void;