Skip to content

Commit

Permalink
fix(types): update address api
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode authored and Chen-jj committed Jul 20, 2023
1 parent 1d0a00a commit 2739ca5
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions packages/taro/types/api/open-api/address.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,34 @@ declare module '../../index' {
namespace chooseAddress {
interface Option {
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
complete?: (res: TaroGeneral.CallbackResult) => void
complete?: (res: SuccessCallbackResult) => void
/** 接口调用失败的回调函数 */
fail?: (res: TaroGeneral.CallbackResult) => void
/** 接口调用成功的回调函数 */
success?: (result: SuccessCallbackResult) => void
}

interface SuccessCallbackResult {
interface SuccessCallbackResult extends TaroGeneral.CallbackResult {
/** 收货人姓名 */
userName: string
/** 邮编 */
postalCode: string
/** 国标收货地址第一级地址 */
provinceName: string
/** 国标收货地址第二级地址 */
cityName: string
/** 国标收货地址第三级地址 */
countyName: string
/** 国标收货地址第四级地址 */
streetName: string
/** 详细收货地址信息 */
detailInfo: string
/** 错误信息 */
errMsg: string
/** 新选择器详细收货地址信息 */
detailInfoNew: string
/** 收货地址国家码 */
nationalCode: string
/** 邮编 */
postalCode: string
/** 国标收货地址第一级地址 */
provinceName: string
/** 收货人手机号码 */
telNumber: string
/** 收货人姓名 */
userName: string
}
}

Expand Down

0 comments on commit 2739ca5

Please sign in to comment.