UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

36 lines (35 loc) 835 B
import type { OpenLocation } from './types'; /** * 打开地图,查看位置 * @param param 参数 * @returns 查看Promise * @example * ```ts * openLocationInMp({ * lat, * lng, * name, * address, * }); * ``` */ export declare function openLocationInMp({ lat, lng, name, address, scale, }: OpenLocation): Promise<unknown>; /** * 打开地图,查看位置 * @param param 参数 * @returns 查看Promise * @example * ```ts * openLocationInH5({ * lat, * lng, * name, * address, * * context: this, * route: '/map' * }); * ``` */ export declare function openLocationInH5({ lat, lng, name, address, route, context, }: OpenLocation): Promise<number>; export declare function getOpenLocationUrl({ lat, lng, name, address, }: Pick<OpenLocation, 'lat' | 'lng' | 'name' | 'address'>): string;