diff --git a/packages/taro/types/index.d.ts b/packages/taro/types/index.d.ts index 50665d30a07d..953f991de2f2 100644 --- a/packages/taro/types/index.d.ts +++ b/packages/taro/types/index.d.ts @@ -9086,6 +9086,42 @@ declare namespace Taro { */ function navigateBackMiniProgram(OBJECT?: navigateBackMiniProgram.Param): Promise + namespace chooseInvoice { + type Promised = { + /** + * 所选发票卡券的 cardId + */ + cardId: string + /** + * 所选发票卡券的加密 code,报销方可以通过 cardId 和 encryptCode 获得报销发票的信息。 + */ + encryptCode: string + /** + * 发票方的 appId + */ + publisherAppId: string + } + type Param = {} + } + /** + * @since 1.5.0 + * + * 选择用户的发票抬头。 + * + * 需要[用户授权](https://developers.weixin.qq.com/miniprogram/dev/api/authorize-index.html) scope.invoice + * + * **示例代码:** + * + * ```javascript + * Taro.chooseInvoice({ + * success(res) { + * } + * }) + * ``` + * @see https://developers.weixin.qq.com/miniprogram/dev/api/wx.chooseInvoice.html + */ + function chooseInvoice(OBJECT?: chooseInvoice.Param): Promise + namespace chooseInvoiceTitle { type Promised = { /**