Looking at Is it possible to restrict number to a certain range I found the type for creating Ranges and Enumerates.
Looking at What is the type of an enum in Typescr