inferred-types 0.53.2 → 0.53.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.
@@ -2863,8 +2863,8 @@ function isFalsy(val) {
2863
2863
  }
2864
2864
 
2865
2865
  // src/type-guards/isFnWithParams.ts
2866
- function isFnWithParams(input) {
2867
- return typeof input === "function" && Object.keys(input)?.length > 0;
2866
+ function isFnWithParams(input, ...params) {
2867
+ return params.length === 0 ? typeof input === "function" && input?.length > 0 : typeof input === "function" && input?.length === params.length;
2868
2868
  }
2869
2869
 
2870
2870
  // src/type-guards/isHexadecimal.ts