Skip to content

Fix:修复类型定义中getObject方法的options不包含Range选项的问题 #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ declare namespace COS {
type Initiator = Owner;
/** 单个授权信息 */
type Grant = string;
/** RFC 2616 中定义的字节范围。 @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 */
type Range = string;
/** 被授权者信息与权限信息 */
interface Grants {
/** 所有者的信息 */
Expand Down Expand Up @@ -1092,6 +1094,8 @@ declare namespace COS {
/** getObject 接口参数 */
interface GetObjectParams extends ObjectParams {
BodyType?: 'text' | 'blob' | 'arraybuffer',
/** 下载对象的指定范围字节。参见 RFC 2616 中定义的字节范围,see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35。范围值必须使用 bytes=first-last 格式且仅支持单一范围,不支持多重范围。first 和 last 都是基于0开始的偏移量。例如 bytes=0-9 表示下载对象的开头10个字节的数据 ,如果不指定,则表示下载整个对象 */
Range?: Range;
/** 写入流,可以传本地文件写入流 */
Output?: Stream,
/** 请求里的 Url Query 参数 */
Expand Down