Skip to content

Commit d21a934

Browse files
committedSep 30, 2024·
fix(shared): revert unexpected type changes (close #1610)
1 parent c5364ea commit d21a934

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎packages/shared/src/utils/typeGuards.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ export const isFunction = (val: unknown): val is Function =>
88
/**
99
* Check if a value is plain object, with generic type support
1010
*/
11-
export const isPlainObject = <
12-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
13-
T extends Record<string, unknown> = Record<string, unknown>,
14-
>(
11+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unnecessary-type-parameters
12+
export const isPlainObject = <T extends Record<any, any> = Record<any, any>>(
1513
val: unknown,
1614
): val is T => Object.prototype.toString.call(val) === '[object Object]'
1715

0 commit comments

Comments
 (0)
Please sign in to comment.