mirror of
https://github.com/sindresorhus/type-fest.git
synced 2025-12-08 19:25:05 +00:00
Use built-in NoInfer
This commit is contained in:
parent
cc2b0f2038
commit
7cc84e3a1a
4
source/is-any.d.ts
vendored
4
source/is-any.d.ts
vendored
@ -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`.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user