UNPKG

react-daum-address-hook

Version:

A lightweight and modern React hook for Daum(Kakao) address search service with TypeScript support

19 lines (18 loc) 541 B
import { AddressSearchResult, UseAddressSearch } from "./type"; declare global { interface Window { daum: { Postcode: new (config: { oncomplete: (data: AddressSearchResult) => void; onclose?: () => void; }) => { open: () => void; }; }; } } interface UseAddressSearchProps { onComplete?: (data: AddressSearchResult) => void; } export declare const useAddressSearch: (props?: UseAddressSearchProps) => UseAddressSearch; export {};