ts-type-forge
    Preparing search index...

    Type Alias IsNotAny<T>

    IsNotAny: BoolNot<IsAny<T>>

    Checks if a given type T is not the any type. The logical negation of IsAny.

    Type Parameters

    • T

      The type to check.

    true if T is not any, false otherwise.

    type T1 = IsNotAny<any>; // false
    type T2 = IsNotAny<unknown>; // true
    type T3 = IsNotAny<string>; // true