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 5e6e62f commit 000f70dCopy full SHA for 000f70d
src/types/utils.ts
@@ -71,6 +71,8 @@ export type EveryIsNever<Ts extends ReadonlyArray<unknown>> = Ts extends readonl
71
72
/**
73
* Returns whether or not the given type a record.
74
+ *
75
+ * Note: Does not pass for interfaces.
76
*/
77
export type IsRecord<T> = And<Not<IsNever<T>>, T extends Readonly<Record<PropertyKey, unknown>> ? true : false>;
78
0 commit comments