ts-range
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

TS-Range

Build Status Version

TypeScript utility types for working with integer ranges from 0-100.

import { Gt, Lt, Gte, Lte, Not } from 'ts-range';

const x: Lte<4>; // 4 | 3 | 2 | 1 | 0

const y: Gt<7> & Lte<12>; // 8 | 9 | 10 | 11 | 12

const z: Gte<1> & Lt<5> & Not<3>; // 1 | 2 | 4

(c) 2018 LinkedIn

Readme

Keywords

Package Sidebar

Install

npm i ts-range

Weekly Downloads

2

Version

1.0.0

License

BSD-2-Clause

Unpacked Size

639 kB

Total Files

22

Last publish

Collaborators

  • northm