You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If `T` is an infinite string type (e.g., `on${string}`), `Record<T, never>` produces an index signature,
119
+
// and since `{}` extends index signatures, the result becomes `false`.
120
+
Textendsstring
121
+
? {}extendsRecord<T,never>
122
+
? false
123
+
: true
124
+
: false>;
87
125
88
126
/**
89
127
Returns a boolean for whether the given type is a `number` or `bigint` [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types).
0 commit comments