Skip to content

Commit 709c2bc

Browse files
authored
fix: ts definition for KeepAlive option (#104)
* fix: ts definition for KeepAlive option * fix: ts type OriginalHttpStatus
1 parent f5a0647 commit 709c2bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ declare namespace COS {
178178
FollowRedirect?: boolean,
179179
/** 是否使用全球加速域名。开启该配置后仅以下接口支持操作:putObject、getObject、headObject、optionsObject、multipartInit、multipartListPart、multipartUpload、multipartAbort、multipartComplete、multipartList、sliceUploadFile、uploadFiles */
180180
UseAccelerate?: boolean,
181+
/** 是否开启长链接,默认开启 */
182+
KeepAlive?: boolean,
181183
/** 获取签名的回调方法,如果没有 SecretId、SecretKey 时,必选 */
182184
getAuthorization?: (
183185
options: GetAuthorizationOptions,
@@ -751,7 +753,7 @@ declare namespace COS {
751753
/** 指定通用错误文档的对象键,当发生错误且未命中重定向规则中的错误码重定向时,将返回该对象键的内容 */
752754
Key: Key,
753755
/** 用于配置命中错误文档的 HTTP 状态码,可选值为 Enabled 或 Disabled,默认为 Enabled */
754-
OriginalHttpStatus?: 'Enabled' | 'Disabled,默认为'
756+
OriginalHttpStatus?: 'Enabled' | 'Disabled'
755757
},
756758
/** 重定向规则配置,最多设置100条 RoutingRule */
757759
RoutingRules?: {

0 commit comments

Comments
 (0)