Skip to content

Commit

Permalink
fix PutPolicyOptions type in some TypeScirpt environment
Browse files Browse the repository at this point in the history
  • Loading branch information
lihsai0 committed Mar 14, 2024
1 parent f60fecd commit cfb8fdd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## CHANGE LOG
## 7.11.2
- 对象存储,修复部分 TypeScript 环境上传策略构造选项类型声明不正确

## 7.11.1
- 对象存储,上传策略移除严格模式,支持任意策略选项

Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ export declare namespace rs {
// @deprecated
transformFallbackKey?: string;

[key: string]: string | number | boolean;
[key: string]: string | number | boolean | undefined;
}
class PutPolicy {
[k: string]: string | number | boolean | Function;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qiniu",
"version": "7.11.1",
"version": "7.11.2",
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit cfb8fdd

Please sign in to comment.