diff --git a/index.d.ts b/index.d.ts index 0fca4513..fbc43225 100644 --- a/index.d.ts +++ b/index.d.ts @@ -21,6 +21,7 @@ import { OwnerType, UserMeta, ObjectCallback, + DeleteObjectResult, } from 'oss-interface'; export * from 'oss-interface'; @@ -892,7 +893,7 @@ export class Client implements IObjectSimple { /** * Delete an object from the bucket. */ - delete(name: string, options?: RequestOptions): Promise; + delete(name: string, options?: RequestOptions): Promise; /** * Copy an object from sourceName to name. diff --git a/index.test-d.ts b/index.test-d.ts index ea9883ae..216a0567 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -17,6 +17,7 @@ import { GetStreamResult, CopyObjectOptions, CopyAndPutMetaResult, + DeleteObjectResult, Client, ImageClient, ClusterClient, @@ -49,7 +50,7 @@ class SimpleClient implements IObjectSimple { console.log(name, options); return {} as any; } - async delete(name: string, options?: RequestOptions): Promise { + async delete(name: string, options?: RequestOptions): Promise { console.log(name, options); return {} as any; }