From a8961657ff03a51b7ea252307f7786e5436034a9 Mon Sep 17 00:00:00 2001 From: xiaoJay Date: Wed, 10 Apr 2019 10:07:20 +0800 Subject: [PATCH 1/2] update typings @types/wx-js-sdk-dt docs url: https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141115 search `wx.updateTimelineShareData` in page and will find the difference of interface `ShareToTimelineConfig` defined in [@types/wx-js-sdk-dt] --- types/wx-js-sdk-dt/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wx-js-sdk-dt/index.d.ts b/types/wx-js-sdk-dt/index.d.ts index 81c601ad74..c6297eaacb 100644 --- a/types/wx-js-sdk-dt/index.d.ts +++ b/types/wx-js-sdk-dt/index.d.ts @@ -181,7 +181,7 @@ declare namespace wx { /** * 分享图标 */ - imageUrl?: string; + imgUrl?: string; success?: () => void; } From cff23a8e276712cb3f2e9e19473060ca784a0de1 Mon Sep 17 00:00:00 2001 From: xiaoJay Date: Wed, 10 Apr 2019 10:35:03 +0800 Subject: [PATCH 2/2] update @types/wx-js-sdk-dt test update test code `wx.updateTimelineShareData` --- types/wx-js-sdk-dt/wx-js-sdk-dt-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wx-js-sdk-dt/wx-js-sdk-dt-tests.ts b/types/wx-js-sdk-dt/wx-js-sdk-dt-tests.ts index a7942dfb31..53b972ff84 100644 --- a/types/wx-js-sdk-dt/wx-js-sdk-dt-tests.ts +++ b/types/wx-js-sdk-dt/wx-js-sdk-dt-tests.ts @@ -146,5 +146,5 @@ wx.updateAppMessageShareData({ wx.updateTimelineShareData({ title: '', link: '', - imageUrl: '' + imgUrl: '' });