New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

type-fest

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-fest - npm Package Compare versions

Comparing version

to
4.29.1

4

package.json
{
"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;