aio-entity 2.0.2 → 2.0.3

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.
Files changed (2) hide show
  1. package/index.d.ts +3 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -61,7 +61,7 @@ export declare const useEntity: <T>(p: I_useEntity<T>) => {
61
61
  get: () => any;
62
62
  set: () => any;
63
63
  };
64
- getReport: (rows: T[], getValue: (row: T, detail: I_detail) => false | {
64
+ getReport: (rows: T[], getValue: (row: T, detail: I_detail) => false | void | {
65
65
  [key: string]: number | any[];
66
66
  }, getGroup?: (row: T) => string[]) => any;
67
67
  getParentByRowId: (data: T[], rowId: string | number) => T;
@@ -88,7 +88,7 @@ declare class EntityClass<T> {
88
88
  private replace;
89
89
  filterRows: (rows: T[], getResult: (row: T, detail: I_detail) => boolean, parentIds?: (string | number)[]) => T[];
90
90
  updateReport: (values: any, groups: string[], dic: any) => void;
91
- getReport: (rows: T[], getValue: (row: T, detail: I_detail) => false | {
91
+ getReport: (rows: T[], getValue: (row: T, detail: I_detail) => false | void | {
92
92
  [key: string]: number | any[];
93
93
  }, getGroup?: (row: T) => string[]) => any;
94
94
  add: (data: T[], row: T, parentId?: string | number) => {
@@ -176,7 +176,7 @@ export declare const useEntityFilter: <T, F>(p: {
176
176
  get: () => any;
177
177
  set: () => any;
178
178
  };
179
- getReport: (rows: T[], getValue: (row: T, detail: I_detail) => false | {
179
+ getReport: (rows: T[], getValue: (row: T, detail: I_detail) => false | void | {
180
180
  [key: string]: number | any[];
181
181
  }, getGroup?: (row: T) => string[]) => any;
182
182
  getParentByRowId: (data: T[], rowId: string | number) => T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aio-entity",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "kit",
5
5
  "main": "index.js",
6
6
  "scripts": {