diff --git a/packages/taro-weapp/src/apis-list.ts b/packages/taro-weapp/src/apis-list.ts index 6a1b35eab423..ce7d38739845 100644 --- a/packages/taro-weapp/src/apis-list.ts +++ b/packages/taro-weapp/src/apis-list.ts @@ -1,12 +1,19 @@ export const needPromiseApis = new Set([ 'authPrivateMessage', + 'chooseContact', + 'cropImage', 'disableAlertBeforeUnload', + 'editImage', 'enableAlertBeforeUnload', 'getBackgroundFetchData', + 'getFuzzyLocation', 'getGroupEnterInfo', + 'getLocalIPAddress', 'getShareInfo', + 'getUserProfile', 'getWeRunData', 'join1v1Chat', + 'openCustomerServiceChat', 'openVideoEditor', 'saveFileToDisk', 'scanItem', @@ -14,10 +21,4 @@ export const needPromiseApis = new Set([ 'setWindowSize', 'sendBizRedPacket', 'startFacialRecognitionVerify', - 'openCustomerServiceChat', - 'getLocalIPAddress', - 'getUserProfile', - 'editImage', - 'getFuzzyLocation', - 'cropImage' ]) diff --git a/packages/taro/types/api/device/contact.d.ts b/packages/taro/types/api/device/contact.d.ts index 3dfa70f18ce8..44f670d2bbc9 100644 --- a/packages/taro/types/api/device/contact.d.ts +++ b/packages/taro/types/api/device/contact.d.ts @@ -100,7 +100,7 @@ declare module '../../index' { * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.chooseContact.html */ - chooseContact(option: chooseContact.Option): Promise + chooseContact(option: chooseContact.Option): Promise /** 添加手机通讯录联系人。用户可以选择将该表单以「新增联系人」或「添加到已有联系人」的方式,写入手机系统通讯录。 * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.addPhoneContact.html