Skip to content

Commit 0b005f6

Browse files
committed
fix:修复COS.Util类型
1 parent 307b5db commit 0b005f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ declare namespace COS {
193193

194194
type StringOrBuffer = Buffer | String;
195195
interface Util {
196-
md5: (StringOrBuffer) => string,
197-
xml2json: (string) => string,
198-
json2xml: (string) => string,
196+
md5: (str: StringOrBuffer, encoding?: string) => string,
197+
xml2json: (bodyStr: string) => any,
198+
json2xml: (json: any) => string,
199199
}
200200

201201
interface StaticGetAuthorizationOptions {

0 commit comments

Comments
 (0)