@faasjs/tencentcloud

License: MITopen in new windowNPM Stable Versionopen in new windowNPM Beta Versionopen in new window

FaasJS's tencentcloud provider.

Install

npm install @faasjs/tencentcloud

Modules

Classes

Type Aliases

Functions

Type Aliases

TencentcloudConfig

Ƭ TencentcloudConfig: Object

云 API 配置项 优先读取环境变量,如果没有则读取入参

Type declaration

NameType
appId?string
region?string
secretId?string
secretKey?string
token?string

Functions

request

request<T>(«destructured»): Promise<T>

腾讯云请求封装

Type parameters

NameType
Tany

Parameters

NameType
«destructured»TencentcloudConfig & { action: string ; payload: { [key: string]: any; } ; service: string ; version: string }

Returns

Promise<T>