Files
2025-08-17 22:15:07 +08:00

29 lines
725 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 注意:此文件是为了引入微信接口
// !!如果这个文件与你的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
}