@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
|
|
47
|
+
expose(...fields: Array<(keyof this) | string>): this;
|
|
48
48
|
/**
|
|
49
49
|
* ### 排除部分类的属性
|
|
50
50
|
* @param fields 属性列表
|
|
51
51
|
*/
|
|
52
|
-
exclude(...fields: string
|
|
52
|
+
exclude(...fields: Array<(keyof this) | string>): this;
|
|
53
53
|
/**
|
|
54
54
|
* ### 用指定的数据对当前实例进行覆盖
|
|
55
55
|
* 相同属性才会覆盖上去
|