PokéRogue
    Preparing search index...

    Type Alias IsNegative<T>

    IsNegative: T extends Negative<T> ? true : false

    Returns a boolean for whether the given number is a negative number.

    Type Parameters

    import type {IsNegative} from 'type-fest';

    type ShouldBeFalse = IsNegative<1>;
    type ShouldBeTrue = IsNegative<-1>;