Browse Source

fix(types): 变更setData update字段

vian 4 years ago
parent
commit
9d5f0b2500
1 changed files with 1 additions and 1 deletions
  1. 1 1
      types/src/interface/base.ts

+ 1 - 1
types/src/interface/base.ts

@@ -180,7 +180,7 @@ export interface ISetData<T = any, F = any, R = any> {
   prop?: string; // 用来指表中的数组属性名,针对如configMaterial里,一个collections 里有多个数组数据的情况
   actionName?: ActionName; // 除了增删改查,还会有更复杂的操作,用这个来区分
   filter?: F; // 查询条件
-  update?: T extends any ? any : Partial<T>; // 和update类型对应,
+  update?: Partial<T>; // 和update类型对应,
   documents?: T[]; // add 类型对应,批量插入
   odocs?: any[]; // 存放撤销的原始数据?
   result?: R; // 特殊的返回结果