Skip to main content

Negative<T>

Negative<T> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never

Defined in: packages/react-querybuilder/src/types/type-fest/numeric.ts:155

A negative number/bigint (-∞ < x < 0)

Use-case: Validating and documenting parameters.

Type Parameters

Type Parameter
T extends Numeric

See

  • NegativeInteger
  • NonNegative

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.