A finite number
. You can’t pass a bigint
as they are already guaranteed to be finite.
Use-case: Validating and documenting parameters.
Signature:
export declare type Finite<T extends number> = T extends PositiveInfinity | NegativeInfinity ? never : T;
References: PositiveInfinity, NegativeInfinity
``` import {Finite} from ‘type-fest’;
declare function setScore<T extends number>(length: Finite
Utilities