3 ms·
TypeScript can... sort of do that. They could definitely take it further if they wanted to For example a type could be `0 | 1 | 2 | 3 | 4 | 5`, though there's
by brundolf 5y ago
TypeScript can... sort of do that. They could definitely take it further if they wanted to
For example a type could be `0 | 1 | 2 | 3 | 4 | 5`, though there's no way right now to specify that as `0..5`