main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
466 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { GreaterEq } from './GreaterEq';
|
---|
| 2 | /**
|
---|
| 3 | * Check if a [[Number]] is lower or equal to another one
|
---|
| 4 | * @param N1 to compare
|
---|
| 5 | * @param N2 to compare to
|
---|
| 6 | * @returns [[Boolean]]
|
---|
| 7 | * @example
|
---|
| 8 | * ```ts
|
---|
| 9 | * import {N} from 'ts-toolbelt'
|
---|
| 10 | *
|
---|
| 11 | * type test0 = N.LowerEq<'7', '5'> // False
|
---|
| 12 | * type test1 = N.LowerEq<'5', '5'> // True
|
---|
| 13 | * type test2 = N.LowerEq<'5', '7'> // True
|
---|
| 14 | * ```
|
---|
| 15 | */
|
---|
| 16 | export declare type LowerEq<N1 extends number, N2 extends number> = GreaterEq<N2, N1>;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.