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

feat(taro): 分享参数增加动态消息相关字段 #4618

Merged
merged 1 commit into from
Oct 25, 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
14 changes: 13 additions & 1 deletion packages/taro/types/api/share/share.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ declare namespace Taro {
/**
* 是否使用带 shareTicket 的转发[详情](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html)
*/
withShareTicket?: boolean
withShareTicket?: boolean,
isUpdatableMessage?: boolean,
activityId?: string,
templateInfo?: TemplateInfo
Comment on lines +8 to +10
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可否像上面 withShareTicket 一样为 isUpdatableMessage activityId templateInfo 添加一些注释呢?

https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.updateShareMenu.html

}

interface TemplateInfo {
parameterList: Array<TemplateInfoParameter>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parameterList 建议按照微信小程序文档添加上注释。

}

interface TemplateInfoParameter {
name: string,
value: string
Comment on lines +18 to +19
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namevalue 也建议添加上注释。

}
}
/**
Expand Down