type-fest
Advanced tools
Comparing version
{ | ||
"name": "type-fest", | ||
"version": "4.29.0", | ||
"version": "4.29.1", | ||
"description": "A collection of essential TypeScript types", | ||
@@ -47,3 +47,3 @@ "license": "(MIT OR CC0-1.0)", | ||
"tsd": "^0.31.2", | ||
"typescript": "~5.6.3", | ||
"typescript": "~5.7.2", | ||
"xo": "^0.59.3" | ||
@@ -50,0 +50,0 @@ }, |
@@ -0,1 +1,5 @@ | ||
// Can eventually be replaced with the built-in once this library supports | ||
// TS5.4+ only. Tracked in https://github.com/sindresorhus/type-fest/issues/848 | ||
type NoInfer<T> = T extends infer U ? U : never; | ||
/** | ||
@@ -29,2 +33,2 @@ Returns a boolean for whether the given type is `any`. | ||
*/ | ||
export type IsAny<T> = 0 extends 1 & T ? true : false; | ||
export type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false; |
397756
0.05%9468
0.03%