Skip to content

Commit

Permalink
chore(taro): 添加分享参数类型定义的注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfield550 committed Oct 25, 2019
1 parent d95f3cc commit 1f3b492
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/taro/types/api/share/share.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,41 @@ declare namespace Taro {
* 是否使用带 shareTicket 的转发[详情](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html)
*/
withShareTicket?: boolean,
/**
* 是否是动态消息,详见[动态消息](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/updatable-message.html)
*
* @since 2.4.0
*/
isUpdatableMessage?: boolean,
/**
* 动态消息的 activityId。通过 [updatableMessage.createActivityId](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/updatable-message/updatableMessage.createActivityId.html) 接口获取
*
* @since 2.4.0
*/
activityId?: string,
/**
* 动态消息的模板信息
*
* @since 2.4.0
*/
templateInfo?: TemplateInfo
}

interface TemplateInfo {
/**
* 参数列表
*/
parameterList: Array<TemplateInfoParameter>
}

interface TemplateInfoParameter {
/**
* 参数名
*/
name: string,
/**
* 参数值
*/
value: string
}
}
Expand Down

0 comments on commit 1f3b492

Please sign in to comment.