UNPKG

client-search

Version:

客户端搜索

13 lines (12 loc) 539 B
interface IWindow { fetch<T>(input: RequestInfo, init?: RequestInit): Promise<IApiResponse<T>>; } export default class Service { private fetch; constructor(fetch: IWindow['fetch']); fetchHouseList(body?: HouseListParams): Promise<IApiListResponse<IHouseDetail>>; batchSearchAddress(keywords: string): Promise<(IAmapTips | null)[]>; georegeo(location: ILocationBaseParams): Promise<IAddressComponent | null>; districtToCoordinates(keyword?: string): Promise<ILocationBaseParams | null>; } export {};