TypeScript Number Range Validation
So, if I want to only allow numbers from 0 to 100 in TypeScript, is there a better way than this. Please tell me there is.
A developer asks on social media whether there is a better way to restrict TypeScript numbers to the range 0–100. The joke is the exaggerated desperation of hoping for a cleaner solution to a common type-system problem.
- @gentoomemes / 9033 2024-01-29
- Type
- image
- Size
- 800×325 · 34.8 KiB
- Mood
- саркастичный, отчаянный
- Language
- en
- Added