Skip to content

Commit 35b6d19

Browse files
committed
更新 d.ts
1 parent 2b5054d commit 35b6d19

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

index.d.ts

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,11 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
18351835
/** 请求里的 Body 参数 */
18361836
Body?: Body,
18371837
/** 请求的 API 动作接口(可理解为不带 = 的 Query 参数),如 acl、tagging、image_process 等 */
1838-
Action: Action
1838+
Action?: Action,
1839+
/** 请求url */
1840+
Url?: string,
1841+
/** 返回值body是否不需要解析 */
1842+
RawBody?: boolean,
18391843
}
18401844
/** Request 接口返回值 */
18411845
interface RequestResult extends GeneralResult {
@@ -1857,29 +1861,6 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
18571861
Expires?: number,
18581862
}
18591863

1860-
// request
1861-
/** request 接口参数 */
1862-
interface RequestParams extends BucketParams {
1863-
/** 操作方法,如 get,post,delete, head 等 HTTP 方法 */
1864-
Method: string,
1865-
/** 请求的对象键,最前面不带 / */
1866-
Key?: Key,
1867-
/** 请求里的 Url Query 参数 */
1868-
Query?: Query,
1869-
/** 请求里的 Body 参数 */
1870-
Body?: Body | string,
1871-
/** 请求的 API 动作接口(可理解为不带 = 的 Query 参数),如 acl、tagging、image_process 等 */
1872-
Action?: Action,
1873-
/** 请求url */
1874-
Url?: string,
1875-
/** 返回值body是否不需要解析 */
1876-
RawBody?: boolean,
1877-
}
1878-
/** Request 接口返回值 */
1879-
interface RequestResult extends GeneralResult {
1880-
Body?: Buffer,
1881-
}
1882-
18831864
/** getObjectUrl 接口返回值 */
18841865
interface GetObjectUrlResult {
18851866
/** 返回对象 Url */

0 commit comments

Comments
 (0)