Skip to content

Commit 24a0a32

Browse files
🧹 Fix unsafe any type in isObject parameter
Updates the type guard `isObject` in `src/core/json-utils.ts` to use `unknown` instead of `any` for its argument. This ensures better type safety without changing functionality. Co-authored-by: zknpr <96851588+zknpr@users.noreply.github.com>
1 parent 189aee5 commit 24a0a32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/json-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ export function applyMergePatch(target: any, patch: any, depth = 0): any {
104104
return target;
105105
}
106106

107-
function isObject(val: any): boolean {
107+
function isObject(val: unknown): boolean {
108108
return val !== null && typeof val === 'object';
109109
}

0 commit comments

Comments
 (0)