UNPKG

@tplc/business

Version:

11 lines (10 loc) 584 B
import { UserLocation } from './useLocation.api' export declare const currentLocation: import('vue').Ref<UserLocation | undefined> export declare const currentUserLatLon: import('vue').Ref<UniApp.GetLocationSuccess | undefined> declare const useLocation: (onLocation?: (location: UserLocation) => void) => { getLocation: (force?: boolean, forceSetting?: boolean) => Promise<void> locationIng: import('vue').Ref<boolean> userLocation: import('vue').Ref<UserLocation | undefined> userLatLon: import('vue').Ref<UniApp.GetLocationSuccess | undefined> } export default useLocation