Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type definition for latitude and longitude #12418

Merged
merged 2 commits into from
Sep 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/taro/types/api/location/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ declare module '../../index' {
/** 详细地址 */
address: string
/** 纬度,浮点数,范围为-90~90,负数表示南纬。使用 gcj02 国测局坐标系 */
latitude: string
latitude: number
/** 经度,浮点数,范围为-180~180,负数表示西经。使用 gcj02 国测局坐标系 */
longitude: string
longitude: number
}
}

Expand Down Expand Up @@ -109,9 +109,9 @@ declare module '../../index' {
/** 详细地址 */
address: string
/** 纬度,浮点数,范围为-90~90,负数表示南纬。使用 gcj02 国测局坐标系 */
latitude: string
latitude: number
/** 经度,浮点数,范围为-180~180,负数表示西经。使用 gcj02 国测局坐标系 */
longitude: string
longitude: number
/** 位置名称 */
name: string
/** 调用结果 */
Expand Down Expand Up @@ -202,9 +202,9 @@ declare module '../../index' {

interface SuccessCallbackResult extends TaroGeneral.CallbackResult {
/** 纬度,范围为 -90~90,负数表示南纬 */
latitude: string
latitude: number
/** 经度,范围为 -180~180,负数表示西经 */
longitude: string
longitude: number
}
}

Expand Down