An if-else-like type that resolves depending on whether the given type is any.
any
IsAny
import type {IfAny} from 'type-fest';type ShouldBeTrue = IfAny<any>;//=> truetype ShouldBeBar = IfAny<'not any', 'foo', 'bar'>;//=> 'bar' Copy
import type {IfAny} from 'type-fest';type ShouldBeTrue = IfAny<any>;//=> truetype ShouldBeBar = IfAny<'not any', 'foo', 'bar'>;//=> 'bar'
An if-else-like type that resolves depending on whether the given type is
any.