@daysnap/horn-jssdk
Version:
原生容器面向 H5 开发者提供的基于容器应用内的网页开发工具包
14 lines (13 loc) • 515 B
TypeScript
import { type FailCallbackResult, type PickOptions } from '../../core';
export interface GetLocationResult {
latitude: number;
longitude: number;
}
export interface GetLocationOptions {
success?: (result: GetLocationResult) => void;
fail?: (err: FailCallbackResult) => void;
}
/**
* 获取GPS定位
*/
export declare const getLocation: <T extends GetLocationOptions = GetLocationOptions>(options?: T | undefined) => import("../../core").PromisifySuccessResult<PickOptions<T>, GetLocationOptions>;