vue3-watermark-camera
Version:
A Vue 3 component for taking photos with watermark support
23 lines (21 loc) • 817 B
TypeScript
import { LocationResult } from '../types';
declare global {
interface Window {
dd?: {
getLocation: (options: {
targetAccuracy?: string;
cacheTimeout?: number;
coordinate?: string;
useCache?: boolean;
withReGeocode?: boolean;
type?: number;
success?: (res: any) => void;
fail?: (error: any) => void;
}) => void;
};
}
}
export declare function getH5Location(): Promise<LocationResult>;
export declare function getDingTalkLocation(): Promise<LocationResult>;
export declare function getAmapAddress(lat: number, lng: number, key: string): Promise<string>;
export declare function detectPlatform(): 'dingtalk' | 'wechat' | 'alipay' | 'browser';