dd
This commit is contained in:
29
assets/Scripts/wx_clound_client_api/wx.aip.d.ts
vendored
Normal file
29
assets/Scripts/wx_clound_client_api/wx.aip.d.ts
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// 注意:此文件是为了引入微信接口
|
||||
// !!如果这个文件,与你的wx.d.ts因为定义重复报错,你可以删除本文件!!
|
||||
|
||||
// @ts-ignore
|
||||
declare class wx {
|
||||
public static cloud: Cloud;
|
||||
}
|
||||
// @ts-ignore
|
||||
declare class Cloud {
|
||||
public init(options: {
|
||||
env?: string | {
|
||||
database?: string
|
||||
storage?: string
|
||||
functions?: string
|
||||
},
|
||||
traceUser?: boolean//default true
|
||||
});
|
||||
public callFunction(obj: {
|
||||
name: string,
|
||||
data?: any,
|
||||
config?: { env: string },
|
||||
}): Promise<CloudCallFunctionResult>;
|
||||
}
|
||||
// @ts-ignore
|
||||
declare type CloudCallFunctionResult<T = any> = {
|
||||
result: T,
|
||||
errMsg: string,
|
||||
requestID: string
|
||||
}
|
||||
Reference in New Issue
Block a user