We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141c403 commit 3a57fadCopy full SHA for 3a57fad
is/object_of.ts
@@ -54,9 +54,7 @@ export function isObjectOf<
54
return annotate(pred, "predObj", predObj);
55
}
56
57
-function isRecordT<T extends Record<PropertyKey, Predicate<unknown>>>(
58
- x: unknown,
59
-): x is T {
+function isRecordT(x: unknown): x is Record<PropertyKey, unknown> {
60
if (x == null) return false;
61
if (typeof x !== "object" && typeof x !== "function") return false;
62
if (Array.isArray(x)) return false;
0 commit comments