esexts 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -1
- package/types.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esexts",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "esexts",
|
|
5
5
|
"author": "dotcoo <dotcoo@163.com> (http://blog.dotcoo.com)",
|
|
6
6
|
"homepage": "https://github.com/dotcoo/esexts#readme",
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
"esexts"
|
|
14
14
|
],
|
|
15
15
|
"files": [
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"README.md",
|
|
16
18
|
"dist",
|
|
17
19
|
"types.d.ts"
|
|
18
20
|
],
|
package/types.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ declare global {
|
|
|
149
149
|
* @param defval 默认值
|
|
150
150
|
* @returns 属性值
|
|
151
151
|
*/
|
|
152
|
-
$attr(key: string, defval: any, { defval: any }): any;
|
|
152
|
+
$attr(key: string, defval: any, options: { defval: any }): any;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* 设置对象的属性(带存在性检查)
|
|
@@ -158,7 +158,7 @@ declare global {
|
|
|
158
158
|
* @param exists 是否检查属性是否存在
|
|
159
159
|
* @returns 当前对象
|
|
160
160
|
*/
|
|
161
|
-
$attr(key: string, val: any, { exists: boolean }): this;
|
|
161
|
+
$attr(key: string, val: any, options: { exists: boolean }): this;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* 设置对象的属性(带存在性检查)
|
|
@@ -167,7 +167,7 @@ declare global {
|
|
|
167
167
|
* @param define 属性定义
|
|
168
168
|
* @returns 当前对象
|
|
169
169
|
*/
|
|
170
|
-
$attr(key: string, val: any, { define: any }): this;
|
|
170
|
+
$attr(key: string, val: any, options: { define: any }): this;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* 属性四则运算(带定义选项)
|
|
@@ -180,7 +180,7 @@ declare global {
|
|
|
180
180
|
* @param div 除法值
|
|
181
181
|
* @returns 当前对象
|
|
182
182
|
*/
|
|
183
|
-
$attr(key: string, val: any, { defval: any, add: number, sub: number, mul: number, div: number }): this;
|
|
183
|
+
$attr(key: string, val: any, options: { defval: any, add: number, sub: number, mul: number, div: number }): this;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* 通过管道函数处理对象
|