@airpower/transformer 0.1.1 → 0.1.2

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.
@@ -44,12 +44,12 @@ export declare class Transformer {
44
44
  * ### 暴露部分类的属性
45
45
  * @param fields 属性列表
46
46
  */
47
- expose(...fields: string[]): this;
47
+ expose(...fields: Array<(keyof this) | string>): this;
48
48
  /**
49
49
  * ### 排除部分类的属性
50
50
  * @param fields 属性列表
51
51
  */
52
- exclude(...fields: string[]): this;
52
+ exclude(...fields: Array<(keyof this) | string>): this;
53
53
  /**
54
54
  * ### 用指定的数据对当前实例进行覆盖
55
55
  * 相同属性才会覆盖上去
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/transformer",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "AirPower-Transformer 是一个基于 TypeScript 的数据转换器,提供了从 JSON 对象到 类实例 对象之间互相转换的系列装饰器和方法。",
6
6
  "author": {
7
7
  "name": "Hamm",