Skip to content

Commit ad1e41f

Browse files
carsonxucarsonxu
authored andcommitted
update d.ts
1 parent 65c656f commit ad1e41f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

index.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ declare namespace COS {
523523
/** putBucketCors 接口返回值 */
524524
interface PutBucketCorsResult extends GeneralResult {
525525
/** 存储桶跨域资源共享(CORS)访问控制规则 */
526-
CORSRules: object,
526+
CORSRules: Record<string, any>,
527527
}
528528

529529
// getBucketCors
@@ -550,7 +550,7 @@ declare namespace COS {
550550
/** putBucketPolicy 接口参数 */
551551
interface PutBucketPolicyParams extends BucketParams {
552552
/** 存储桶的权限策略 @see https://cloud.tencent.com/document/product/436/31923 */
553-
Policy: object,
553+
Policy: Record<string, any>,
554554
}
555555
/** putBucketPolicy 接口返回值 */
556556
interface PutBucketPolicyResult extends GeneralResult {}
@@ -561,7 +561,7 @@ declare namespace COS {
561561
/** getBucketPolicy 接口返回值 */
562562
interface GetBucketPolicyResult extends GeneralResult {
563563
/** 存储桶的权限策略 @see https://cloud.tencent.com/document/product/436/31923 */
564-
Policy: object
564+
Policy: Record<string, any>
565565
}
566566

567567
// deleteBucketPolicy
@@ -602,17 +602,17 @@ declare namespace COS {
602602
/** 指明规则是否启用,枚举值:Enabled,Disabled,必选 */
603603
Status: 'Enabled' | 'Disabled',
604604
/** Filter 用于描述规则影响的 Object 集合,必选 */
605-
Filter?: object,
605+
Filter?: Record<string, any>,
606606
/** 规则转换属性,对象何时转换为 Standard_IA 或 Archive 等存储类型 */
607-
Transition?: object,
607+
Transition?: Record<string, any>,
608608
/** 规则过期属性 */
609-
Expiration?: object,
609+
Expiration?: Record<string, any>,
610610
/** 设置允许分片上传保持运行的最长时间 */
611-
AbortIncompleteMultipartUpload?: object,
611+
AbortIncompleteMultipartUpload?: Record<string, any>,
612612
/** 指明非当前版本对象何时过期 */
613-
NoncurrentVersionExpiration?: object,
613+
NoncurrentVersionExpiration?: Record<string, any>,
614614
/** 指明非当前版本对象何时转换为 STANDARD_IA 或 ARCHIVE 等存储类型 */
615-
NoncurrentVersionTransition?: object,
615+
NoncurrentVersionTransition?: Record<string, any>,
616616
};
617617
/** putBucketLifecycle 接口参数 */
618618
interface PutBucketLifecycleParams extends BucketParams {
@@ -1021,7 +1021,7 @@ declare namespace COS {
10211021
/** listBucketInventory 接口返回值 */
10221022
interface ListBucketInventoryResult extends GeneralResult {
10231023
/** 包含清单任务的详细信息 */
1024-
InventoryConfigurations: object,
1024+
InventoryConfigurations: Record<string, any>,
10251025
/** 当 COS 响应体中 IsTruncated 为 true,且 NextContinuationToken 节点中存在参数值时,您可以将这个参数作为 continuation-token 参数值,以获取下一页的清单任务信息。缺省值:None */
10261026
ContinuationToken: string,
10271027
/** 是否已列出所有清单任务信息的标识。如果已经展示完则为 false,否则为 true */
@@ -1309,7 +1309,7 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
13091309
/** 接口的版本信息,当前最新版本是 2 */
13101310
SelectType: number,
13111311
/** 检索参数,当前版本支持检索 JSON、CSV 文件内容 */
1312-
SelectRequest: object,
1312+
SelectRequest: Record<string, any>,
13131313
/** 当启用版本控制时,指定要检索的版本 ID,如不指定则检索对象的最新版本 */
13141314
VersionId?: VersionId,
13151315
}
@@ -1652,7 +1652,7 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
16521652
/** 上传的进度回调方法 */
16531653
onProgress?: onProgress,
16541654
/** 上传完成回调方法 */
1655-
onFileFinish?: (err: Error, data?: object) => void,
1655+
onFileFinish?: (err: Error, data?: Record<string, any>) => void,
16561656
}
16571657
/** 要上传的单个文件参数 */
16581658
interface UploadFileItemResult extends GeneralResult {
@@ -1671,7 +1671,7 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
16711671
/** 所有文件整体上传进度回调方法 */
16721672
onProgress?: onProgress,
16731673
/** 所有文件上传完成回调方法 */
1674-
onFileFinish?: (err: CosError, data?: object) => void,
1674+
onFileFinish?: (err: CosError, data?: Record<string, any>) => void,
16751675
}
16761676
/** uploadFiles 接口返回值 */
16771677
interface UploadFilesResult extends GeneralResult {

0 commit comments

Comments
 (0)