Skip to main content

LessThan<A, B>

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

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

Returns a boolean for whether a given number is less than another number.

Type Parameters

Type Parameter
A extends number
B extends number

Example

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

LessThan<1, -5>;
//=> false

LessThan<1, 1>;
//=> false

LessThan<1, 5>;
//=> true

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.