qiniu/js-sdk

Type error Build 类型错误

Closed this issue · 0 comments

Build 类型检查错误:
Type error: Element implicitly has an 'any' type because expression of type '"Content-MD5"' can't be used to index type '{ Authorization: string; 'content-type': string; }'.
Property 'Content-MD5' does not exist on type '{ Authorization: string; 'content-type': string; }'

if (options.md5) headers['Content-MD5'] = options.md5