Skip to content

Commit 5ebbd42

Browse files
feat(types): Add optional env config for cloud container call
1 parent 2f43f96 commit 5ebbd42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/taro/types/api/cloud/index.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Taro, { DownloadTask, UploadTask } from "../../index"
1+
import Taro from "../../index"
22

33
declare module '../../index' {
44
namespace cloud {
@@ -212,6 +212,10 @@ declare module '../../index' {
212212

213213
/** 调用云托管参数 */
214214
interface CallContainerParam < P extends string | TaroGeneral.IAnyObject | ArrayBuffer = any | any > {
215+
config?:{
216+
/** 微信云托管的环境ID, 如果在 Taro.cloud.init 中配置了env, 则可以不配置。 */
217+
env: string,
218+
}
215219
/** 服务路径 */
216220
path: string
217221
/** HTTP请求方法,默认 GET */

0 commit comments

Comments
 (0)