Skip to main content

GreaterThanOrEqual<A, B>

GreaterThanOrEqual<A, B> = number extends A | B ? never : A extends B ? true : GreaterThan<A, B>

Defined in: packages/react-querybuilder/src/types/type-fest/greater-than-or-equal.ts:22

Returns a boolean for whether a given number is greater than or equal to another number.

Type Parameters

Type Parameter
A extends number
B extends number

Example

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

GreaterThanOrEqual<1, -5>;
//=> true

GreaterThanOrEqual<1, 1>;
//=> true

GreaterThanOrEqual<1, 5>;
//=> false

caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.