Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(types): Add optional env config for cloud container call #17428

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/taro/types/api/cloud/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Taro, { DownloadTask, UploadTask } from "../../index"
import Taro from "../../index"

declare module '../../index' {
namespace cloud {
Expand Down Expand Up @@ -212,6 +212,10 @@ declare module '../../index' {

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