Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
gxkl committed Oct 21, 2024
1 parent 02393e7 commit 0bc90ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
OwnerType,
UserMeta,
ObjectCallback,
DeleteObjectResult,
} from 'oss-interface';

export * from 'oss-interface';
Expand Down Expand Up @@ -892,7 +893,7 @@ export class Client implements IObjectSimple {
/**
* Delete an object from the bucket.
*/
delete(name: string, options?: RequestOptions): Promise<NormalSuccessResponse>;
delete(name: string, options?: RequestOptions): Promise<DeleteObjectResult>;

/**
* Copy an object from sourceName to name.
Expand Down
3 changes: 2 additions & 1 deletion index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
GetStreamResult,
CopyObjectOptions,
CopyAndPutMetaResult,
DeleteObjectResult,
Client,
ImageClient,
ClusterClient,
Expand Down Expand Up @@ -49,7 +50,7 @@ class SimpleClient implements IObjectSimple {
console.log(name, options);
return {} as any;
}
async delete(name: string, options?: RequestOptions): Promise<NormalSuccessResponse> {
async delete(name: string, options?: RequestOptions): Promise<DeleteObjectResult> {
console.log(name, options);
return {} as any;
}
Expand Down

0 comments on commit 0bc90ab

Please sign in to comment.