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

add types #2361

Merged
merged 1 commit into from
Mar 6, 2019
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
36 changes: 36 additions & 0 deletions packages/taro/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9086,6 +9086,42 @@ declare namespace Taro {
*/
function navigateBackMiniProgram(OBJECT?: navigateBackMiniProgram.Param): Promise<navigateBackMiniProgram.Promised>

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<chooseInvoice.Promised>

namespace chooseInvoiceTitle {
type Promised = {
/**
Expand Down