1.0.0 • Published 6 years ago
ts-range v1.0.0
TS-Range
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
1.0.0
6 years ago
0.0.0-development
6 years ago