title: Is it possible to restrict number to a certain range
body: <p>Since typescript 2.0 RC (or even beta?) it is possible to use number literal types, as in <code>type t = 1 | 2;</code>. Is it possible to restrict a type to a number range, e.g. 0-255, without writing out 256 numbers in the type?</p>
  
  <p>In my case, a library accepts color values for a palette from 0-255, and I'd prefer to only name a few but restrict it to 0-255:</p>
  
  <pre><code>const enum paletteColor {
    someColor = 25,
    someOtherColor = 133
  }
  declare function libraryFunc(color: paletteColor | 0-255); //would need to use 0|1|2|...
  </code></pre>