next-data-kit 8.1.0 → 8.2.1

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.
package/dist/index.d.cts CHANGED
@@ -94,18 +94,16 @@ type TFilterConfig = {
94
94
  /**
95
95
  * Custom filter configuration
96
96
  * Allows defining custom filter functions for specific filter keys
97
- * The value parameter can be typed by using a type assertion in the function definition
98
97
  */
99
98
  type TFilterCustomConfig<T = unknown> = {
100
- [id: string]: (data: any) => TMongoFilterQuery<T>;
99
+ [id: string]: (data: unknown) => TMongoFilterQuery<T>;
101
100
  };
102
101
  /**
103
102
  * Variant of TFilterCustomConfig that allows customizing the returned filter shape.
104
103
  * Useful for Mongo (operator-based) vs. other ORMs (where clauses) in the future.
105
- * The value parameter can be typed by using a type assertion in the function definition
106
104
  */
107
105
  type TFilterCustomConfigWithFilter<TDoc = unknown, TFilter = TMongoFilterQuery<TDoc>> = {
108
- [id: string]: (data: any) => TFilter;
106
+ [id: string]: (data: unknown) => TFilter;
109
107
  };
110
108
  /**
111
109
  * React Data Kit server action input
package/dist/index.d.ts CHANGED
@@ -94,18 +94,16 @@ type TFilterConfig = {
94
94
  /**
95
95
  * Custom filter configuration
96
96
  * Allows defining custom filter functions for specific filter keys
97
- * The value parameter can be typed by using a type assertion in the function definition
98
97
  */
99
98
  type TFilterCustomConfig<T = unknown> = {
100
- [id: string]: (data: any) => TMongoFilterQuery<T>;
99
+ [id: string]: (data: unknown) => TMongoFilterQuery<T>;
101
100
  };
102
101
  /**
103
102
  * Variant of TFilterCustomConfig that allows customizing the returned filter shape.
104
103
  * Useful for Mongo (operator-based) vs. other ORMs (where clauses) in the future.
105
- * The value parameter can be typed by using a type assertion in the function definition
106
104
  */
107
105
  type TFilterCustomConfigWithFilter<TDoc = unknown, TFilter = TMongoFilterQuery<TDoc>> = {
108
- [id: string]: (data: any) => TFilter;
106
+ [id: string]: (data: unknown) => TFilter;
109
107
  };
110
108
  /**
111
109
  * React Data Kit server action input