Skip to content

Commit

Permalink
fix: type declare
Browse files Browse the repository at this point in the history
  • Loading branch information
lihsai0 committed Jul 28, 2024
1 parent 05886e4 commit a63f891
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ export declare namespace conf {
}
class Config {
useHttpsDomain: boolean;
accelerateUploading: boolean;
/**
* @deprecated 实际已无加速上传能力,使用 accelerateUploading 代替
*/
useCdnDomain: boolean;
ucEndpointsProvider?: httpc.EndpointsProvider | null;
queryRegionsEndpointsProvider?: httpc.EndpointsProvider | null;
Expand Down Expand Up @@ -346,7 +350,7 @@ export declare namespace form_up {
export declare namespace resume_up {
type UploadResult = {
data: any;
resp: IncomingMessage;
resp: Omit<IncomingMessage, 'url'> & { requestUrls: string[] };
}

class ResumeUploader {
Expand Down Expand Up @@ -588,7 +592,7 @@ export declare namespace httpc {
// responseWrapper.js
interface ResponseWrapperOptions<T = any> {
data: T;
resp: IncomingMessage;
resp: Omit<IncomingMessage, 'url'> & { requestUrls: string[] };
}

interface ResponseError {
Expand All @@ -598,7 +602,7 @@ export declare namespace httpc {

class ResponseWrapper<T = any> {
data: T extends void ? undefined | ResponseError : T & ResponseError;
resp: IncomingMessage;
resp: Omit<IncomingMessage, 'url'> & { requestUrls: string[] };
constructor(options: ResponseWrapperOptions);
ok(): boolean;
needRetry(): boolean;
Expand Down

0 comments on commit a63f891

Please sign in to comment.