Skip to content

Commit

Permalink
feat(Wechat): updateShareData 不再返回结果
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Jul 5, 2019
1 parent 811a92d commit 2cfbae2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Wechat.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { EventBus } from './EventBus'
import { isBoolean } from './is'
import { loadResource, LoadResourceUrlType } from './loadResource'
import { noop } from './noop'
import { sequential } from './sequential'

declare const wx: any
Expand Down Expand Up @@ -317,7 +318,7 @@ export class Wechat {
*
* @param params 分享数据
*/
updateShareData(params: WechatUpdateShareDataParams): Promise<any> {
updateShareData(params: WechatUpdateShareDataParams): Promise<void> {
params = {
...this.prevShareParams,
...params,
Expand All @@ -327,7 +328,7 @@ export class Wechat {
shareJsApiList.map(
jsApi => () => this.invoke(jsApi, params),
),
)
).then(noop, noop)
}

/**
Expand Down

0 comments on commit 2cfbae2

Please sign in to comment.