diff --git a/types/wx/lib.wx.cloud.d.ts b/types/wx/lib.wx.cloud.d.ts index f830297..7f4591a 100644 --- a/types/wx/lib.wx.cloud.d.ts +++ b/types/wx/lib.wx.cloud.d.ts @@ -99,9 +99,9 @@ interface WxCloud { init: (config?: ICloudConfig) => void callFunction(param: OQ): void - callFunction( + callFunction( param: RQ - ): Promise + ): Promise> uploadFile(param: OQ): WechatMinigame.UploadTask uploadFile( @@ -136,8 +136,8 @@ declare namespace ICloud { // === API: callFunction === type CallFunctionData = AnyObject - interface CallFunctionResult extends IAPISuccessParam { - result: AnyObject | string | undefined + interface CallFunctionResult extends IAPISuccessParam { + result: T; } interface CallFunctionParam extends ICloudAPIParam {