@oviirup/utils 1.0.4 → 1.0.5

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.
@@ -19,7 +19,7 @@ declare function isEmptyObject<T extends object = Dictionary>(val: T): boolean;
19
19
  /** Check if the given value is empty, null, undefined, or a string with no content */
20
20
  declare function isEmpty(val: unknown): boolean;
21
21
  /** Check if the given object is a function */
22
- declare function isFunction<T = unknown>(val: unknown): val is AnyFunction<T>;
22
+ declare function isFunction(val: any): val is AnyFunction<any>;
23
23
  /** Check if the given value is a regex */
24
24
  declare function isRegex(val: unknown): val is RegExp;
25
25
  /** Check if the given value is truthy */
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  type Dictionary<T = any> = Record<string, T>;
2
- type AnyFunction<T = any> = (...args: unknown[]) => T;
2
+ type AnyFunction<T = any> = (...args: any[]) => T;
3
3
  type ClassValue = string | number | bigint | null | boolean | undefined;
4
4
  type ClassArray = ClassValue[];
5
5
  type ClassRecord = Record<string, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oviirup/utils",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Collection of common JavaScript / TypeScript utilities bt @oviirup",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/oviirup/utils",