Skip to content

Commit

Permalink
upd:补充d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
livehigh committed Apr 15, 2022
1 parent 84d4f78 commit 9c75d6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ declare namespace COS {
UploadIdCacheLimit?: number,
/** 是否使用全球加速域名。开启该配置后仅以下接口支持操作:putObject、getObject、headObject、optionsObject、multipartInit、multipartListPart、multipartUpload、multipartAbort、multipartComplete、multipartList、sliceUploadFile、uploadFiles */
UseAccelerate?: boolean,
/** 默认为true,将host加入签名计算,关闭后可能导致越权风险,建议保持为true */
ForceSignHost?: boolean,
/** 获取签名的回调方法,如果没有 SecretId、SecretKey 时,必选 */
getAuthorization?: (
options: GetAuthorizationOptions,
Expand Down Expand Up @@ -1907,6 +1909,8 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
Query?: Query,
/** 请求里的 Header 参数 */
Headers?: Headers,
/** 默认为true,将host加入签名计算,关闭后可能导致越权风险,建议保持为true */
ForceSignHost?: boolean,
}

}
Expand Down

0 comments on commit 9c75d6a

Please sign in to comment.