Sha256: e37650b39727a6cf036c45a2b6df055e9c69a0afdd6dbab833ab957eb7f1a389

Contents?: true

Size: 460 Bytes

Versions: 28

Compression:

Stored size: 460 Bytes

Contents

import type {GreaterThan} from './greater-than';

/**
 Returns a boolean for whether a given number is less than or equal to another number.

@example
```
import type {LessThanOrEqual} from 'type-fest';

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

LessThanOrEqual<1, 1>;
//=> true

LessThanOrEqual<1, 5>;
//=> true
```
*/
export type LessThanOrEqual<A extends number, B extends number> = number extends A | B
	? never
	: GreaterThan<A, B> extends true ? false : true;

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.24 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.18 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.16 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.15 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.14 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.13 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.12 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.11 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.10 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.9 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.8 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts
clapton-0.0.7 lib/clapton/javascripts/node_modules/type-fest/source/less-than-or-equal.d.ts