Float<T>
Float<
T
> =T
extendsunknown
?IsFloat
<T
> extendstrue
?T
:never
:never
Defined in: packages/react-querybuilder/src/types/type-fest/numeric.ts:127
A number
that is not an integer.
Use-case: Validating and documenting parameters.
It does not accept Infinity
.
Type Parameters
Type Parameter |
---|
T |
Example
import type {Float} from 'type-fest';
declare function setPercentage<T extends number>(length: Float<T>): void;
See
Integer
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.