export interface AlipayMyGetLocationSuccessResponse { longitude: number; latitude: number; accuracy: number; altitude?: number; } export interface AlipayMyErrorResponse { error: number; errorMessage: string; } export interface AlipayMyGetLocationProps { type: 0 | 1 | 2 | 3; cacheTimeout: number; success: (response: AlipayMyGetLocationSuccessResponse) => void; fail?: (response: AlipayMyErrorResponse) => void; complete?: () => void; } export interface AlipayMy { getLocation: (props: AlipayMyGetLocationProps) => void; }