Skip to content

Commit db36ad1

Browse files
committed
Range 去掉一个多出来的 Range 定义
1 parent 58d224f commit db36ad1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

index.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ declare namespace COS {
6868
type Initiator = Owner;
6969
/** 单个授权信息 */
7070
type Grant = string;
71-
/** RFC 2616 中定义的字节范围。 @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 */
72-
type Range = string;
7371
/** 被授权者信息与权限信息 */
7472
interface Grants {
7573
/** 所有者的信息 */
@@ -1152,8 +1150,6 @@ declare namespace COS {
11521150
/** getObject 接口参数 */
11531151
interface GetObjectParams extends ObjectParams {
11541152
BodyType?: 'text' | 'blob' | 'arraybuffer',
1155-
/** 下载对象的指定范围字节。参见 RFC 2616 中定义的字节范围,see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35。范围值必须使用 bytes=first-last 格式且仅支持单一范围,不支持多重范围。first 和 last 都是基于0开始的偏移量。例如 bytes=0-9 表示下载对象的开头10个字节的数据 ,如果不指定,则表示下载整个对象 */
1156-
Range?: Range;
11571153
/** 写入流,可以传本地文件写入流 */
11581154
Output?: Stream,
11591155
/** 请求里的 Url Query 参数,传入该值中的 key/value 将会被 URLEncode */

0 commit comments

Comments
 (0)