Use built-in NoInfer

This commit is contained in:
Sindre Sorhus 2025-05-08 16:26:23 +07:00
parent cc2b0f2038
commit 7cc84e3a1a

4
source/is-any.d.ts vendored
View File

@ -1,7 +1,3 @@
// 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;
/**
Returns a boolean for whether the given type is `any`.