Skip to content

Commit

Permalink
fix(taro): update getStorage return typings (#5170)
Browse files Browse the repository at this point in the history
vscode报General.CallbackResult无data属性
  • Loading branch information
waiwaic authored and luckyadam committed Dec 26, 2019
1 parent 752d0fc commit ef636ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro/types/api/storage/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ declare namespace Taro {
* ```
* @see https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.getStorage.html
*/
function getStorage(option: getStorage.Option): Promise<General.CallbackResult>
function getStorage(option: getStorage.Option): Promise<getStorage.SuccessCallbackResult>

/** Taro.clearStorage 的同步版本
* @supported weapp, h5
Expand Down

0 comments on commit ef636ca

Please sign in to comment.