Skip to content

Commit 3a57fad

Browse files
lambdalisueMilly
andauthored
Update is/object_of.ts
Co-authored-by: Milly <milly.ca@gmail.com>
1 parent 141c403 commit 3a57fad

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

is/object_of.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ export function isObjectOf<
5454
return annotate(pred, "predObj", predObj);
5555
}
5656

57-
function isRecordT<T extends Record<PropertyKey, Predicate<unknown>>>(
58-
x: unknown,
59-
): x is T {
57+
function isRecordT(x: unknown): x is Record<PropertyKey, unknown> {
6058
if (x == null) return false;
6159
if (typeof x !== "object" && typeof x !== "function") return false;
6260
if (Array.isArray(x)) return false;

0 commit comments

Comments
 (0)