Skip to content

Commit 28da58c

Browse files
committed
fix: 修复d.ts
1 parent 1141487 commit 28da58c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
18641864

18651865
// request
18661866
/** request 接口参数 */
1867-
interface RequestParams extends BucketParams {
1867+
interface RequestParams {
18681868
Bucket?: Bucket;
18691869
Region?: Region;
18701870
/** 操作方法,如 get,post,delete, head 等 HTTP 方法 */
@@ -1882,6 +1882,8 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
18821882
/** 返回值body是否不需要解析 */
18831883
RawBody?: boolean,
18841884
ContentType?: string,
1885+
/** 请求时带上的 Header 字段 */
1886+
Headers?: Headers,
18851887
}
18861888
/** Request 接口返回值 */
18871889
interface RequestResult extends GeneralResult {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cos-nodejs-sdk-v5",
3-
"version": "2.11.14",
3+
"version": "2.11.15",
44
"description": "cos nodejs sdk v5",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)