@base-stone/hooks 1.3.2 → 1.3.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.
@@ -77,7 +77,7 @@ declare interface QueryOptions<K extends string, T = Record<string, any>> {
77
77
  params?: Record<string, any> | undefined;
78
78
  dataType: DataType;
79
79
  dataKey: K;
80
- transform?: (data: T) => T;
80
+ transform?: (data: Record<string, any> | Record<string, any>[]) => T;
81
81
  initialValue?: Record<string, any> | Record<string, any>[];
82
82
  }
83
83
 
@@ -119,7 +119,7 @@ declare interface SelectConfig<K extends string> {
119
119
  queryFn: (data: Record<string, any>) => Promise<QueryResponse>;
120
120
  params?: Record<string, any>;
121
121
  dataKey: K;
122
- transform?: (result: Record<string, any>) => Record<string, any>[];
122
+ transform?: (data: Record<string, any> | Record<string, any>[]) => Record<string, any>[];
123
123
  fieldNames: {
124
124
  label: string;
125
125
  value: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@base-stone/hooks",
3
3
  "license": "MIT",
4
- "version": "1.3.2",
4
+ "version": "1.3.3",
5
5
  "author": {
6
6
  "name": "leafront",
7
7
  "email": "leafront@126.com"