Skip to content

Commit

Permalink
fix(typescript types): 修复 Taro.getExtConfigSync 返回值类型。 (#5114)
Browse files Browse the repository at this point in the history
Taro.getExtConfigSync() 返回的是自定义数据,外层没有 `extConfig`。
  • Loading branch information
wongyouth authored and Garfield550 committed Dec 18, 2019
1 parent c254da9 commit 6ed9175
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/taro/types/api/ext/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
declare namespace Taro {
namespace getExtConfigSync {
interface ExtInfo {
/** 第三方平台自定义的数据 */
extConfig: General.IAnyObject
}
}
/** Taro.getExtConfig 的同步版本。
*
* **Tips**
Expand All @@ -18,7 +12,7 @@ declare namespace Taro {
* ```
* @see https://developers.weixin.qq.com/miniprogram/dev/api/ext/wx.getExtConfigSync.html
*/
function getExtConfigSync(): getExtConfigSync.ExtInfo
function getExtConfigSync(): General.IAnyObject

namespace getExtConfig {
interface Option {
Expand Down

0 comments on commit 6ed9175

Please sign in to comment.